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 we can generate random numbers in java?

611


What are the benefits of java?

574


What is console based application in java?

546


What is the basic concepts of OOPS?

693


Why stringbuffer is faster than string?

542






Explain implementation and how is it different from conversion?

589


What is the size of int?

601


Explain the importance of finally over return statement?

610


How does compareto method work?

524


Why runnable interface is used in java?

574


What is difference between next () and nextline () in java?

541


How many types of equations are there?

544


What is time complexity algorithm?

548


What is a flag variable?

561


Can you make a constructor final in Java?

628