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 a nested structure?

527


What restrictions are placed on method overriding in java programming?

536


Can we declare main () method as non static?

514


Why stringbuilder is not thread safe?

535


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

588






What is variable and its types?

537


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

573


What occurs when an object is constructed?

563


Whats the difference between notify() and notifyall()?

564


Can we overload the methods by making them static?

498


What is the difference between an if statement and a switch statement?

642


Where are register variables stored?

586


What are the two types of java programming?

530


What is boolean query?

524


please send me hr interview questions in it industry

1655