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 difference between interface & abstract class?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
Explain polymorphism citing an example.
List types of storage classes in java?
What is meant by local variable and instance variable?
What java is used for?
what is collatration?
What is concurrent hashmap and its features?
Does chrome use java?
What is the importance of static variable?
What is use of valueof () in java?
What is a nullable field?
Can a class have a static inner class?
What is an infinite loop in java? Explain with an example.
Tell some latest versions in JAVA related areas?