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
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is stringjoiner ?
Explain about instanceof operator in java?
What is a substitution variable?
Can a static method be final?
What are selection structures?
What is the difference between hashmap and hashtable in java?
How many bits is a string in java?
What is main string [] args?
What are the steps involved to create a bean?
What are java packages? What's the significance of packages?
What is difference between array and arraylist in java?
What is the intersection and union methods?
How do you remove duplicates from an array in java?
Difference between java and javascript