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


Please Help Members By Posting Answers For Below Questions

What is flag in python?

833


How do you escape in java?

824


Is hashset sorted in java?

887


Is sizeof a preprocessor?

767


Why java is considered dynamic?

964


What is nested top-level class?

799


What is complexity in java?

765


What is api data?

788


Explain the use of shift operator in java. Can you give some examples?

750


Garbage collection in java?

796


Can a method be static?

750


Difference between nested and inner classes ?

828


What is memory leak and how does java handle it?

778


What is lambda programming?

726


What is an object’s lock and which object’s have locks?

717