How to perform Singleton of the java class object on multi
JVM?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the dot operator?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is tostring () method?
Which class has no duplicate elements?
Which programming language is most secure?
What is the % operator?
what is request processor?
Can we define private and protected modifiers for the members in interfaces?
Explain Public static void main?
What is a map in java?
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
What primitive Java types? Howmany are they and what are their names?