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 the different between get and post?

975


What is java literals?

1134


How many bytes is a unicode character?

1007


Define array. Tell me about 2-D array.

1052


Can a static class implement an interface?

1126


What is a parameter in a function?

997


What are the advantages of unicode?

1011


why Interface used?

989


What is main string [] args?

993


Is void a type?

981


In java how do we copy objects?

1052


Why are the destructors for base class and derived class called in reverse order when the program exits

2211


Can you extend singleton class?

1105


What is the lifetime and scope of a variable?

1019


Can a class have a static inner class?

1085