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 are java objects passed to a method and what are native methods?
What is thread safe in java?
What is the difference between member variables initialization and assignment in a constructor?
What is numeric function?
Explain constructors and types of constructors in java.
What are passing parameters?
Define array. Tell me about 2-D array.
What is the full form of jpeg?
Explain the difference between treeset and treemap in java?
What are the different access modifiers available in java?
What is heterogeneous in java?
What is the difference between superclass and subclass?
How do you end a program?
What is an object’s lock and which object’s have locks?
Why inputstreamreader is used in java?