how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time
Answer Posted / sitaram
Singleton service means only one service provide at a
time.When multiple threads are trying to get the singleton
object in the same time.we can get an error. because only
one object provide in complete application.
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
What is the relationship difference the canvas class and the graphics class?
What is unmodifiable collection in java?
Is zero a positive integer?
Difference between method overloading and overriding.
What is the instance of an object?
What is a parameter in simple terms?
How many threads does a core java have?
Name some OOPS Concepts in Java?
What is the difference between the paint() and repaint() methods in java programming?
Can keyword be used as identifier?
How you can force the garbage collection?
How to invoke external process in java.
What is visibility mode?
What is the difference between the file and randomaccessfile classes?
What are measurable parameters?