Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is indexof?

0 Answers  


What are the differences between include directive and include action?

0 Answers  


Does java trim remove newline?

0 Answers  


What is native code?

0 Answers  


How to store image in arraylist in java?

0 Answers  


What is a list in java?

0 Answers  


What is an interface in java?

0 Answers  


WAP to illustrate the use of interface

2 Answers  


Is java pure object oriented or not? if yes, give the valid reason.

13 Answers   Emphasis, NIIT, Syntel, Wipro,


how do you store phone numbers using java collections

5 Answers   Bosch, IBAB,


what is the difference between a threads start() and run() methods? : Java thread

0 Answers  


Why ArrayList class is not a synchronized class and why it is not a thread safe class? explain

1 Answers  


Categories