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 / balaji@cse@crr engg@eluru

types of creating thread
1)extend thread class
2)implement by runnable interface
=>2"nd method is good because by using interface we can
implement multiple inheritance

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you insert a line break?

854


Differences between traditional programming language and object oriented programming language?

1059


Why stringbuilder is not thread safe?

960


What is a generic data type?

957


In how many ways we can create threads in java?

1133


How objects are stored in java?

978


Why does java does not support multiple inheritance? Explain

922


What is a parameter in simple terms?

936


Which is better arraylist or vector?

973


What is arrays fill in java?

943


What is the difference between a switch statement and an if statement?

1011


What is the difference between choice and list?

1041


When we should use serialization?

962


Explain differences between checked and unchecked exceptions in java?

1015


What two classes are used to read data only?

1033