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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / boka

How would you maintain the state of the object across the
JVM... if a singleton is being worked upon on multiple JVMs
and each one changes the state of Singleton how would this
be maintained. I dont think that Singleton across JVMs
makes any sense...

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is Classloader in Java?

0 Answers  


How does callback work in java?

0 Answers  


What is aggregation and composition ?

1 Answers   Fidelity,


What is literal example?

0 Answers  


Can a static method be final?

0 Answers  






Why destructor is not used in java?

0 Answers  


How many bytes is string in java?

0 Answers  


What are the steps in the jdbc connection?

0 Answers  


What is private public protected in java?

0 Answers  


What are the different tags provided in jstl?

0 Answers  


What is %02d?

0 Answers  


What is difference between fail-fast and fail-safe?

0 Answers  


Categories