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

Is singleton class thread safe?

951


Can two objects have same hashcode?

944


When can you say a graph to be a tree?

1027


Explain hashset and its features?

1079


Can we extend singleton class?

899


Who developed java?

936


Explain different ways of creating a thread?

985


How do you reverse sort a list in java?

894


What is the purpose of static keyword in java?

906


What is difference between wait and notify in java?

1057


What is split return?

926


What is composition in java?

1216


What is the difference between pass by reference and pass by pointer?

1000


Define immutable object?

1006


What are triggers in DB? Explain their types. How do they work?

1034