This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Arathi Raj: Hi How do you make a class to be singleton? What does this mean. Can u explain it?
Try googling for "Singleton". The first few links give decent descriptions. If you still don't understand, come back with specific questions about the problems you encountered. We will be happy to clarify from there.
FYI: Singleton looks interesting in some aspects. But, may need to be programmed with care, if you are introducing aspects like hashmaps inside it and making the hashmap bigger over the time. That can make it a memory hog.