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
What is the size of int?
Give any two differences between C++ and java.
Which programming language is best in future?
What is == and === in javascript?
Does java linked list allow duplicates?
What is run time allocation?
What is the static import?
What is the maximum size of array in java?
What are different types of arrays?
Why 1 is not a prime number?
Explain about automatic type conversion in java?
Can we convert stringbuffer to string?
What are the fileinputstream and fileoutputstream?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?