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
Can we have any other return type than void for main method?
Can you have two constructors in java?
How does arraylist size increase in java?
Explain importance of finally block in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is the covariant return type?
What will be the default values of all the elements of an array defined as an instance variable?
what do you mean by classloader?
How big is a boolean?
How many types of flags are there?
What is a ternary operator in java? What is an interface?
What is the difference between an interface and an abstract class?
How does java pattern compile work?
What is command line argument in java?
What is use of set in java?