what is singleton class? where it mainly used in the
projects?

Answer Posted / rameshkrishna

singleton means create the one and only object per class
that per jvm

---use to decrese globel variables
---to provide the encapsulation

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1736


the same information whether it will connect to the database or it will be used previous information?

571


How is a java object message delivered to a non-java client?

574


What are the different approaches to represent an inheritance hierarchy?

588


Why are component architectures useful?

574






To identify IDL language what mapping mechanism is used?

3416


What are JTA/JTS and how they used by client?

1718


What is difference between object state and behavior?

581


What is TL and its use?

1991


Why a component architecture for the java platform?

578


What is scalable, portability in the view of J2EE?

1876


What is a class loader?

588


Explain about thread synchronization inside a monitor?

1998


For which statements does it make sense to use a label?

586


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1104