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
Explain the differences between abstraction and encapsulation?
What is the this keyword?
Why is stringbuffer called mutable?
How does class forname work in java?
Is hashmap thread safe?
Why do you canvas?
What do you mean by platform independence?
Can you add null to a list java?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is a values collection view ?
What is main string [] args?
What is the difference between a window and a frame in java programming?
What are JVM.JRE, J2EE, JNI?
What is method reference in java?
Which is a valid identifier?