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
Which eclipse is best for java?
Can java run on google chrome?
Explain about interrupt() method of thread class ?
What are aggregate functions explain with examples?
What is boolean used for?
Explain about collection interface in java?
What is a data structure java?
What is tochararray in java?
What are constructors in java?
Explain about doubly linked list
Write code to implement bubble sort in java?
Why super is first line in java?
Explain importance of inheritance in java?
Can we make constructors static?
what is the difference between thread and runnable types? : Java thread