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


Please Help Members By Posting Answers For Below Questions

What is double parsedouble in java?

730


what do you mean by classloader?

729


Is multiple inheritance supported by java?

669


What do you mean by singleton class in java?

664


Which is faster set or list in java?

764






How do I run java on windows?

741


What is collection class in java?

710


What does null mean in java?

817


What is difference between next () and nextline () in java?

729


How to find the index of the largest number in an arraylist java?

701


What do you understand by classes in java?

740


What an i/o filter in java programming?

778


What are the four corner stones of oop?

756


What is the differences between c++ and java? Explain

781


Can we synchronize static methods in java?

765