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
Can you have two constructors in java?
Can we compare two strings in java?
What are Normalization Rules? Define Normalization?
Give any two differences between C++ and java.
Can we override tostring method in java?
How many techniques can be employed to create a string object?
What is a parameter in simple terms?
Will minecraft java be discontinued?
Why char array is favored over string for the storage of passwords?
What is difference between an object and a class?
What type of variable is error flag?
What is keyset in java?
What are the six ways to use this keyword?
Define class?
What is the difference between inner class and nested class?