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.
What is a Singleton Pattern and where it is used and why it is used and can a static variable declared inside the Singleton Class and if it is watz the purpose of giving static variable inside the Singleton Class.
Singleton pattern is used when you need only one instance of a class to serve the requests ( like printer ). Check this article . It's being discussed many times here. [ May 03, 2005: Message edited by: Srinivasa Raghavan ]