how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time
Answer Posted / wikipedia
Detailed answer here:
http://en.wikipedia.org/wiki/Singleton_pattern
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can we pass null as argument in java?
What is scope of a variable?
Is zero a positive integer?
Can a lock be acquired on a class in java programming?
What are different access specifiers in java? Explain
What is object of class in java?
Can we define private and protected modifiers for variables in interfaces?
How many types of keywords are there?
Is java platform independent?
What is downcasting?
Why does java have two ways to create child threads?
whatis Home interface and Remoteinterface? with example?
What is predicate in java?
How use .contains in java?
Can you use this() and super() both in a constructor?