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 a class in java?
What is variable declaration and definition?
What is arguments in java?
What is the importance of main method in Java?
Explain the scope or life time of class variables or static variables?
How do you print array in java?
What does exp mean in math?
How do you check if a string contains only numeric digits?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
how is final different from finally and finalize in java?
Why string is called as immutable?
What is the difference between the file and randomaccessfile classes?
Is java hashset ordered?
Why is string class considered immutable?