How to perform Singleton of the java class object on multi
JVM?
Answer Posted / 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 View All Answers
What is a nested structure?
What restrictions are placed on method overriding in java programming?
Can we declare main () method as non static?
Why stringbuilder is not thread safe?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What is variable and its types?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What occurs when an object is constructed?
Whats the difference between notify() and notifyall()?
Can we overload the methods by making them static?
What is the difference between an if statement and a switch statement?
Where are register variables stored?
What are the two types of java programming?
What is boolean query?
please send me hr interview questions in it industry