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
Which is faster string or stringbuilder?
How do you convert bytes to character in java?
Are arrays static in java?
What are the types of methods in java?
What is flush () in java?
What is method overloading in java ?
What technique can be employed to compare two strings?
How to check if linked list contains loop in java?
Can a method inside a interface be declared as final?
What are multiple inheritances?
What is <> used for in java?
What does localhost mean?
Can a final method be overloaded?
What steps are taken when the OS shifts from one-thread execution to another?
How do you do descending order in java?