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
What is flag in python?
How do you escape in java?
Is hashset sorted in java?
Is sizeof a preprocessor?
Why java is considered dynamic?
What is nested top-level class?
What is complexity in java?
What is api data?
Explain the use of shift operator in java. Can you give some examples?
Garbage collection in java?
Can a method be static?
Difference between nested and inner classes ?
What is memory leak and how does java handle it?
What is lambda programming?
What is an object’s lock and which object’s have locks?