Question: Similar to [this question](https://stackoverflow.com/questions/233030/worst-php-practice-found-in-your-experience)...

What are the worst practices you actually found in Java code?

Mine are:

* using instance variables in servlets (it's not just bad practice but bug, actually)
* using Collection implementations like HashMap, and not using the appropriate interfaces
* using seemingly cryptic class names like SmsMaker (SmsFactory) or CommEnvironment (CommunicationContext)

Answer: 
Defining the logic using exceptions where a for-loop or any form of loop would suffice. 

Example: 

```
while(i < MAX_VALUE)
{
   try
   {
      while(true)
      {
         array[j] = //some operation on the array;
         j++;  

      }
   }
   catch(Exception e)
   {
      j = 0;
   }
}

```

Serious, I know the guy who wrote this code. I reviewed it and corrected the code :)
Excesive focuse on re-using objects that leads to static things everywhere.
(Said re-using can be very helpfull in some situation).

Java has GC build-in, if you need an object, create a new one.