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
How do you replace a string in java?
How does regex work?
What are different types of classloaders?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
Which is better ascii or unicode?
What are byte codes?
What is thread safe in java?
What is difference between checked and unchecked exception in java?
Can we rethrow the same exception from catch handler?
What is hashing in java?
What is break and continue statement?
What is the similarity between dynamic binding and linking?
Explain covariant method overriding in java.
What is jdbc api?
Why array is used in java?