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 parse method?
What are static blocks and static initalizers in java ?
What are adapter classes?
what is the final keyword denotes in java?
What is a double vs float?
Explain notify() method of object class ?
What do you mean by checked exceptions?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is default exception handling in java?
Write a method to check if input string is palindrome?
What is visibility mode?
How do I run java on windows?
What are the wrapped, classes?
Tell me the Importent classes in net package?
Is 0 true or false in java?