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 polymorphism java example?
What are different exception types exceptions available in java ?
Is string a class in java?
What is collections framework?
What causes memory leaks in java?
What is “try and catch” in java
Can we declare main () method as non static?
What is javac in java?
what is heap memory?
0 Answers Tavant Technologies, Zensar,
What is are packages?
What methods are called, When we navigate from one applet to another applet?
What is main method?