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 the different between get and post?
What is java literals?
How many bytes is a unicode character?
Define array. Tell me about 2-D array.
Can a static class implement an interface?
What is a parameter in a function?
What are the advantages of unicode?
why Interface used?
What is main string [] args?
Is void a type?
In java how do we copy objects?
Why are the destructors for base class and derived class called in reverse order when the program exits
Can you extend singleton class?
What is the lifetime and scope of a variable?
Can a class have a static inner class?