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

Explain the public class modifier?

715


What is the difference between array list and vector in java?

732


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1778


What is classes in java?

713


What is split return?

689


Why java is considered dynamic?

944


What is the statements?

824


Does a class inherit the constructors of its superclass in java programming?

747


what are abstract functions?

768


What is the range of the short type?

785


Can we use both this () and super () in a constructor?

776


What is the meaning of nullable?

774


What is java and why do we need it? Explain

803


Can we print null in java?

778


Which collection is ordered in java?

741