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
How can we access some class in another class in java?
Tell us something about different types of casting?
What is qms certification?
What are filterstreams?
What is arguments in java?
Can we declare the main method of our class as private?
What is nullpointerexception?
Why we do exception handling in java and how many types of exceptions are there?
What is predicate in java?
What do you understand by casting in java language?
Why string is immutable with example?
What are the types of methods in java?
Is string is a class in java?
What is regex used for?
Can an interface extend a class?