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

Which is faster string or stringbuilder?

987


How do you convert bytes to character in java?

1049


Are arrays static in java?

1100


What are the types of methods in java?

1174


What is flush () in java?

1068


What is method overloading in java ?

1152


What technique can be employed to compare two strings?

1171


How to check if linked list contains loop in java?

953


Can a method inside a interface be declared as final?

1041


What are multiple inheritances?

1150


What is <> used for in java?

1165


What does localhost mean?

1005


Can a final method be overloaded?

999


What steps are taken when the OS shifts from one-thread execution to another?

1410


How do you do descending order in java?

1008