Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is difference between iterator and enumeration in java?

975


What is an escape character in java?

1017


What is the indent key?

1018


Is null function in java?

1021


What is hashtable and explain features of hashtable?

970


What is string pooling concept?

1052


what is the difference between Object Based Language and Object Oriented Language?

1019


What is a return in java?

1022


What are the different ways to handle exceptions?

969


What do you mean by chromounits in java8?

933


Can a static method be final?

1040


How java is similar to c?

1031


How do I run java on windows?

1153


Is string a data type in java?

1005


Is simpledateformat safe to use in the multithreaded program?

987