How to perform Singleton of the java class object on multi
JVM?
Answer Posted / 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 |
Post New Answer View All Answers
Is arraylist zero based?
Can a constructor be made final?
What is the final variable?
Is empty string in java?
How does singleton class work?
What are the various access specifiers for java classes?
What does void * mean?
What is classname class in java?
What are the access modifiers available in java?
Why are getters and setters used?
What is a module function?
What are actual parameters?
What about main thread in java?
What is a short in java?
What is difference between variable declaration and definition?