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 a dynamic array java?
Why we go for collections in java?
Map map = new HashMap(2); map.add(“1”,”one”); map.add(“2”,”two”); map.add(“3”,”three”); What will happen at this line?
How many bits is a string in java?
What is multithreading and its advantages?
What is the difference between error and exception and explain in simple words not whatever is given in the book.
How will you reverse a singly-link list?
0 Answers Akamai Technologies,
What is a function in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Write a java program that prints all the values given at command-line.
What is namespace in java?
Can we have multiple catch block for a try block?