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
Give few difference between constructor and method?
Explain the importance of import keyword in java?
Can private method static?
What is the purpose of javac exe?
Can we have any code between try and finally blocks?
How to change value in arraylist java?
How to perform linear search in java?
What is methods in java?
How to make a non daemon thread as daemon?
What invokes a thread's run() method in java programming?
Define max and min heap, also the search time of heap.
Explain wait() method of object class ?
What are peerless components in java programming?
How do you create a sop?
What is a bufferedreader?