how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time
Answer Posted / krishnapal
Using synchronized method we can using put requesting
threads into waiting queue.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Are arrays static in java?
How does thread synchronization occurs inside a monitor?
What is time complexity algorithm?
Is null a string in java?
What is singleton math?
What are the two types of exceptions in java? Which are the differences between them?
how to handle exceptions in ejb?
What are the pillars of java?
Write a program to print all permutations of string?
Is 0 an even number?
What is array class in java?
Explain different types of wrapper classes in java?
What is the current version of java?
Why string is immutable with example?
what is abstract class in Java?