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
How does multithreading take place on a computer with a single cpu?
What are basic data types?
Program to Find the second largest element in an array.
Are arrays dynamic in java?
What is the method in java?
What is the difference between compare and compareto in java?
What is a jit compiler?
What is stack explain?
How to reverse string in java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Why are arrays useful in java?
How do you make an arraylist empty in java?
What is the significance of listiterator?
What are different data types?
What is data string?