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
What is hashing principle in java?
What is the use of isempty in java?
Why is string builder not thread safe?
Is java 11 paid version?
What is nested interface?
How do you remove spaces in java?
What is the use of runnable interface?
Is singleton class immutable?
Can a abstract class be defined without any abstract methods?
What is math in java?
What is finalize method?
Explain different ways of creating a thread?
What is difference between next () and nextline () in java?
What is enhanced loop in java?
what are the disadvantages of indexes in oracle?