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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / 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

More Core Java Interview Questions

how to make a un-checked exception as a checked exception one.

2 Answers  


Explain garbage collection in java?

0 Answers  


What is boolean false?

0 Answers  


how you will prevent method overriding?

6 Answers   HCL,


Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.

5 Answers  


How do you define a method?

0 Answers  


Explain different types of thread priorities ?

0 Answers  


can you program for reverse string?

7 Answers   IBM,


How thread scheduler schedule the task?

0 Answers  


Explain notify() method of object class ?

0 Answers  


Can we add default constructor to Servlet?

1 Answers   Fidelity,


Explain wait(), notify() and notifyall() methods of object class ?

0 Answers  


Categories