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

What is sortedmap in java?

555


How do you sort a string in java?

541


How do you allocate memory to object?

525


how to split string in java?

660


Explain the importance of throwable class and its methods?

571






What lambda means?

555


Can a class be declared as static?

685


What is a constructor overloading in java?

530


What is return code?

564


What does %4d mean in java?

847


how to convert Java project into Maven ?

591


What is the use of private static?

539


What is a byte array?

593


Explain an algorithm to find depth of a binary tree.

556


How can an exception be thrown manually by a programmer?

515