how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time
Answer Posted / gowramma m
Two ways to create threads
1)by creating thread class
class classname extends Thread
{
}
2)By converting class to thread ie using Runnable interface
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is difference between iterator and enumeration in java?
What is an escape character in java?
What is the indent key?
Is null function in java?
What is hashtable and explain features of hashtable?
What is string pooling concept?
what is the difference between Object Based Language and Object Oriented Language?
What is a return in java?
What are the different ways to handle exceptions?
What do you mean by chromounits in java8?
Can a static method be final?
How java is similar to c?
How do I run java on windows?
Is string a data type in java?
Is simpledateformat safe to use in the multithreaded program?