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


Please Help Members By Posting Answers For Below Questions

Can we pass null as argument in java?

514


What is scope of a variable?

607


Is zero a positive integer?

537


Can a lock be acquired on a class in java programming?

536


What are different access specifiers in java? Explain

630






What is object of class in java?

601


Can we define private and protected modifiers for variables in interfaces?

588


How many types of keywords are there?

566


Is java platform independent?

572


What is downcasting?

576


Why does java have two ways to create child threads?

472


whatis Home interface and Remoteinterface? with example?

1555


What is predicate in java?

562


How use .contains in java?

626


Can you use this() and super() both in a constructor?

525