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


In howmany ways a thread can be created?

Answers were Sorted based on User's Feedback



In howmany ways a thread can be created?..

Answer / harish

There are two different ways to create a Thread. One is
extends Thread class and implement Runnable Interface.
Better to go for Runnable interface. It will have a method
run(). You should override in the sub class. Even, you
can extend another class to the same thread class.

Is This Answer Correct ?    3 Yes 0 No

In howmany ways a thread can be created?..

Answer / rajshekhar

There are 2 ways to create a thread
1.By extending thread class
2.and the second one is by implementing runnable
interface.among the two the second one is more common and
better to use.

Is This Answer Correct ?    3 Yes 1 No

In howmany ways a thread can be created?..

Answer / ranganathkini

1. Extending the Thread class
2. Implementing Runnable interface in a class and then
passing its reference to a new Thread.
3. Creating an anonymous class to extend the Thread class.
4. Creating an anonymous class to implement the Runnable
interface and then passing its reference to a new Thread.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

what are design patterns in java?give with example?

2 Answers   HCL, iGate,


what is handle?

0 Answers  


which book is better for jdbc ,servlets and jsp

0 Answers   TCS,


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


What classes of exceptions may be caught by a catch clause?

0 Answers  


Difference Between java & javax

5 Answers   Sun Microsystems, Wipro,


diff mvc1 and mvc2 wahts is mean by servlet chaining?

3 Answers   SolutionNET,


What is the purpose of the wait() method?

0 Answers  


important features of java which differenciate it from c++

3 Answers  


what is default length of textfield ?

1 Answers  


What is Connection Pooling?

1 Answers   Enteg Technologies, Infosys, Polaris,


What is rmic?

4 Answers  


Categories