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 |
program to validate the IP address? Validity range should be 0 to 255
What is the benefit of inner classes in java?
How to call static method?
What is the synchronized method modifier?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
Where are the local variables stored?
What is a void method?
What is Java Annotations?
What is the difference between method overriding and overloading?
HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?
Can we declare an array without size in java?
What is ellipsis in java?