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
Why is stringbuffer called mutable?
What is void class in java?
Difference between stack and queue?
Describe different states of a thread.
What is time complexity algorithm?
Can a class be declared as static?
Why do we override tostring method in java?
How concurrent hashmap works?
What does it mean to be immutable?
What is the difference between static binding and dynamic binding?
What is passing parameters in java?
What is pass by value?
What do you mean by platform independence?
What is primitive data type in java?
What is the main difference between java platform and other platforms?