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
What is double parsedouble in java?
what do you mean by classloader?
Is multiple inheritance supported by java?
What do you mean by singleton class in java?
Which is faster set or list in java?
How do I run java on windows?
What is collection class in java?
What does null mean in java?
What is difference between next () and nextline () in java?
How to find the index of the largest number in an arraylist java?
What do you understand by classes in java?
What an i/o filter in java programming?
What are the four corner stones of oop?
What is the differences between c++ and java? Explain
Can we synchronize static methods in java?