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 difference between integer parseint and integer valueof?
Why constructor has no return type?
What is role of void keyword in declaring functions?
What is empty list in java?
How to make a read-only class in java?
Can static methods be inherited?
What are local variables?
What is the difference between procedural and object-oriented programs?
what is the difference between the methods sleep() and wait()? : Java thread
Why pass by reference is not possible in java?
Why packages are used?
Is it possible for a yielded thread to get chance for its execution again?
What is the use of :: in java?
What do you mean by inner class in java?
what is the purpose of the runtime class?