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

Why doesn't the java library use a randomized version of quicksort?

1031


Can java hashmap have duplicate keys?

1077


What is a constructor, constructor overloading in java?

1044


What is constructor chaining in java?

1117


Can you instantiate the math class?

1119


What is parsing in java?

1013


What is a data structure java?

1064


What does singleton class mean?

1031


What is "this" keyword in java? Explain

1144


Is a char always 1 byte?

1048


What is the purpose of skeleton and stub?

1350


Difference between current previous versions of Java?

1079


What is identifier in java?

1173


How many threads can java run?

1167


Why is stringbuffer not immutable?

1134