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
What is close method? How it's different from Finalize & Dispose?
Are strings immutable in java?
How to do a true java ping from windows?
Give the difference between the println method and sqrt method?
Which language is java?
What is an array in java?
How do you compare two strings lexicographically?
What is hashing principle in java?
Is arraylist dynamic in java?
How do you implement polymorphism in our day to day life?
What are the differences between Java 1.0 and Java 2.0?
What does percent mean in java?
what do you mean by stream pipelining in java 8? Explain
What is qms certification?
Why are global variables used?