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 many ways to create Thread and which one is good?
runnable interface ot Thread class?

Answer Posted / guest

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 ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between static and non-static variables in java programming?

976


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1699


What is off heap memory?

1005


Why does java not allow multiple public classes in a java file ?

4531


How do you escape sequences in java?

1071


What is the use of string and stringbuffer?

979


How do you join strings in java?

1047


why are there separate wait and sleep methods? : Java thread

1023


What do you mean by thread safe?

973


Can classes declared using the abstract keyword cab be instantiated?

1046


What are the differences between throw and throws?

1073


Which collections are thread safe in java?

923


What is boolean false?

982


Difference between method overloading and method overriding in java ?

1081


Mention some interfaces implemented by linked list in java.

1022