Collection & null

Can a Hashtable have a “null” key? Can a TreeSet hold a null? Confused?
Check the following table to know whether different data structures support null or not.
Collection Key Value
HashMap Yes [...]

Android

When I came back to my hectic days of work after my long holiday break (hope you guys know what ”a ten day break” means to we IT people), I heard about Android, the open handset project. I have been to mobile app world for quite some time and it thrilled me a bit. I am [...]

Long Running Web Process (LRWP) in the Java Platform using GlassFish

Today while surfing the net I found this article in Sun’s website. I thought this will be useful to some of us. According to the web site, LRWP is,
“The Long Running Web Process (LRWP) is a protocol used by a web server to communicate with its peers. LRWP is similar to CGI, but faster, since [...]

Java performance tips - Part 2 : Better String handling

StringBuffer vs String
As we all know both String & StringBuffer are used to hold string (character sequence) values. The basic & the most important difference between the objects being created using String & StringBuffer : objects of String are immutable (means, no one can change it); but the objects created using StringBuffer are mutable. Consider [...]

Java performance tips - Part 1 : Vector, ArrayList & LinkedList

When, where & how to use Vector & ArrayList
Even though both Vector & ArrayList are used for the same purpose - as a dynamic collection of related objects - there is a right time and place to use them. As we all know there is a major difference: Vector is thread-safe but ArrayList is not. [...]