How to perform Singleton of the java class object on multi
JVM?

Answer Posted / boka

How would you maintain the state of the object across the
JVM... if a singleton is being worked upon on multiple JVMs
and each one changes the state of Singleton how would this
be maintained. I dont think that Singleton across JVMs
makes any sense...

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find the largest value from the given array.

768


What do you mean by order of precedence and associativity?

742


Explain abstract class in java?

768


What is void data type?

759


when to use ArrayList and when to use HashMap in webApplication.

4245


What is a ternary operator in java? What is an interface?

771


List types of storage classes in java?

834


What is the set interface in java programming?

847


What is the purpose of garbage collection in java? When is it used?

809


Is a class subclass of itself?

848


Difference between class#getinstance() and new operator ?

887


Can constructor return value?

741


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

807


What is exception handling in java?

801


Is singleton class immutable?

732