How Set in java collection maintaining uniqueness - how HashSet in java implement unique values

In your collection implementation how you will make sure the unique values without implementing set/hashSet interface? otherway how you implement set interface in your java collection data? For example public class Test { public static void main(String[] args) { HashSet<Object> testSet=

Continue Reading...

Java Collection framework tips

What is a Collection?  • An object that groups multiple elements into a single unit.  • Sometimes called a container      img courtesy - http://javahungry.blogspot.com/ There are two ways to traverse collections: 1) using Iterators. 2) with the (enhanced) for-each construct

Continue Reading...

Apache Camel some tips and tricks

Camel Book in one page   Camel books Camel in action  It enables easy integration of different applications which use several protocols and technologies.Synchronous remote procedure calls or asynchronous messaging is used to communicate via several technologies such as RMI, SOAP

Continue Reading...