GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Java Patterns

 Print  |  
Question:  What is singleton pattern ??



October 10, 2006 18:58:46 #1
 Jay   Member Since: Visitor    Total Comments: N/A 

RE: What is singleton pattern ??
 
If a system only needs one instance of a class, and that instance needs to be accessible in many different parts of a system, you control both instantiation and access by making that class a singleton.
     

 

Back To Question