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 object slice?

2 Answers   HTC, TCS,


Is Java Class Threadsafe ????? How to make Java class Thread safe??

2 Answers   Cognizant,


What is __ init __ functions?

0 Answers  


What things should be kept in mind while creating your own exceptions in java?

0 Answers  


How do you use, call, and access a non-static method in Java?

2 Answers  


Can we override compareto method?

0 Answers  


What is palindrome in java?

0 Answers  


How many static init can you have?

0 Answers  


which class is the wait() method defined in? : Java thread

0 Answers  


How arrays are stored in memory in java?

0 Answers  


Is java supports multiple inheritance? explain?

12 Answers   BUET, Inforica,


Is null or empty java?

0 Answers  


Categories