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...


What are the different ways of creating thread?



What are the different ways of creating thread?..

Answer / Rajni Singh

"1. By extending Thread class and overriding its run() method.n2. By implementing Runnable interface and providing an implementation for the run() method.n3. By using ExecutorService and submitting a Callable or Runnable task to it (e.g., by invoking execute(Runnable) or submit(Callable))."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are peerless components?

1 Answers  


Is .net better than java?

1 Answers  


What is the purpose of a statement block?

1 Answers  


how cani read a command line argument?(usingfile object).

3 Answers  


Why collection is called framework in java?

1 Answers  


What is the function of compareto in java?

1 Answers  


How do you convert bytes to character in java?

1 Answers  


What is difference between fail-fast and fail-safe?

1 Answers  


What is double data type?

1 Answers  


Why do we need array in java?

1 Answers  


int a=1; float b=1.0; System.out.println(a==b);

13 Answers   CTS, Honeywell, McAfee,


How do you reverse a word in java?

1 Answers  


Categories