How to perform Singleton of the java class object on multi
JVM?

Answer Posted / balu

Its possible to write a singleton class by
storing/serializing the singleton object into a flatfile
and use it across all the JVM's. By which it ensures that
only one instance is crested and used across multiple JVM's.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between abstraction and encapsulation?

514


What is the this keyword?

552


Why is stringbuffer called mutable?

559


How does class forname work in java?

476


Is hashmap thread safe?

550






Why do you canvas?

602


What do you mean by platform independence?

579


Can you add null to a list java?

577


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

579


What is a values collection view ?

678


What is main string [] args?

518


What is the difference between a window and a frame in java programming?

587


What are JVM.JRE, J2EE, JNI?

682


What is method reference in java?

553


Which is a valid identifier?

535