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

How are java objects passed to a method and what are native methods?

831


What is thread safe in java?

738


What is the difference between member variables initialization and assignment in a constructor?

912


What is numeric function?

731


Explain constructors and types of constructors in java.

839


What are passing parameters?

785


Define array. Tell me about 2-D array.

819


What is the full form of jpeg?

729


Explain the difference between treeset and treemap in java?

753


What are the different access modifiers available in java?

799


What is heterogeneous in java?

716


What is the difference between superclass and subclass?

792


How do you end a program?

765


What is an object’s lock and which object’s have locks?

695


Why inputstreamreader is used in java?

774