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 between class and object?
Why collection is called framework in java?
What is an example of a constant variable?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What does += mean coding?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
What is locale in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What does string intern() method do?
Explain notifyall() method of object class ?
What are the advantages of user defined functions?
When is the finally clause of a try-catch-finally statement executed?
How many characters is 2 bytes?
What is a list in java?
What is the effect of keeping a constructor private?