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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist a class in java?

1053


What is variable declaration and definition?

995


What is arguments in java?

996


What is the importance of main method in Java?

1053


Explain the scope or life time of class variables or static variables?

982


How do you print array in java?

980


What does exp mean in math?

983


How do you check if a string contains only numeric digits?

1114


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1100


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1081


how is final different from finally and finalize in java?

1046


Why string is called as immutable?

937


What is the difference between the file and randomaccessfile classes?

1089


Is java hashset ordered?

1101


Why is string class considered immutable?

1041