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
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. (
What is the exact difference in between unicast and multicast object? Where we will use?
What is the difference between abstract class and interface1? What is an interface?
How many inner classes can a class have?
What do you mean by JVM?
What are extraneous variables examples?
What is e java?
What data structures are used to perform recursion?
What is a numeric string?
Difference between serialization and deserialization in java?
How do you add an element to a hashset in java?
Explain the importance of join() method in thread class?
what is thread? : Java thread
What is the abstract class?
Can memory leak happen java?