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
Explain the public class modifier?
What is the difference between array list and vector in java?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What is classes in java?
What is split return?
Why java is considered dynamic?
What is the statements?
Does a class inherit the constructors of its superclass in java programming?
what are abstract functions?
What is the range of the short type?
Can we use both this () and super () in a constructor?
What is the meaning of nullable?
What is java and why do we need it? Explain
Can we print null in java?
Which collection is ordered in java?