State the purpose of why a Java singleton should be used?
Submitted by: AdministratorJava singleton is used when a constructor and finalize methods are used only once during the lifetime of the application. If a class is referenced from within then it is garbage collected by the Java which can be retrieved if called again but the problem comes when the constructor or finalize methods are used only once.
Submitted by: Administrator
Submitted by: Administrator
Read Online Java Patterns Job Interview Questions And Answers
Top Java Patterns Questions
☺ | Explain about semaphores? |
☺ | How do you write a Thread Safe Singleton? |
☺ | Explain about fully synchronized objects? |
☺ | Explain about locks? |
☺ | Explain the difference between Canonical and GoF form? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |