What is singleton class?
Answer Posted / kamlesh
SIngleton class is class which instantiate only once.means
suppose you are using JDBC/HIBERNATE in this don't need to
create the multiple instance for
Connection/SessionFactory , so for this we are using this
Singelton design pattern to create the instance for this.
and also with the help of static reference.
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
Difference between this() and super() in java ?
why not override thread to make a runnable? : Java thread
Is arraylist zero based?
What is the main method java?
Print Vertical traversal of a Binary Tree.
What is difference overloading and overriding?
Do I need java on my pc?
What is the platform?
Can you instantiate the math class in Java?
Why do we need data structure in java?
What is an i/o filter?
What does n mean in java?
What is the final method?
What are the important features of Java 9 release?
Explain a few methods of overloading best practices in java?