J2SE
As it can be seen above, the password is embedded in the source as clear text. No corporate risk management folk would approve of exposing passwords, which would potentially expose access to sensitive data. Of course there could be many solutions that would fix this issue by combining technology and process. Here is a partial solution that addresses technology by extending the IDE and by using Java 5 Annotations. Of course, to make the solution complete, one needs to define process that defines a clear separation of responsibility (who does what)
One of the things that keep popping up often is a need to write batch programs that is started from command line. Every single time its always been either reinvent the wheel or copy/paste from old code. So recently decided to put an end to this practice by looking at CLI solution from Apache.
Always thought that the Hash implementations (table & map) used buckets that are prime in number. But recently, after digging around the source code to see what that default size resulted in a bit of a puzzling situation int hash = key.hashCode();