How to perform Singleton of the java class object on multi
JVM?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the biggest integer?
How can we create an immutable class in java?
Is minecraft java edition free?
Why java is call by value?
What is the difference between getCodeBase and getDocumentBase methods?
1 Answers CS Business Services,
what is predefined function in java?
Difference between arraylist and vector.
What is the importance of hashcode() and equals() methods?
Can we call a non-static method from inside a static method?
What is a map? What are the implementations of map?
Explain the difference between throw and throws in java?
How do you pass by reference?