What is singleton class?

Answer Posted / harinath reddy.n

Instead of creating a separate object for every requirement we can create a single object and we can reuse the same object for every requirement

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1632


What is the exact difference in between unicast and multicast object? Where we will use?

779


What is the difference between abstract class and interface1? What is an interface?

783


How many inner classes can a class have?

800


What do you mean by JVM?

790


What are extraneous variables examples?

746


What is e java?

772


What data structures are used to perform recursion?

806


What is a numeric string?

764


Difference between serialization and deserialization in java?

855


How do you add an element to a hashset in java?

694


Explain the importance of join() method in thread class?

847


what is thread? : Java thread

756


What is the abstract class?

767


Can memory leak happen java?

783