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 |
If a method is declared as protected, where may the method be accessed?
What is jagged array in java?
What is the old name of java?
What are memory tables?
What kind of variables can a class consist?
What about member inner classes?
What are advantages and disadvantages of OOPs?
What is difference between “==” and equals()?
What about interthread communication and how it takes place in java?
How does Vector implement synchronization?
What is java objectoutputstream?
What does exp mean in math?