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

What all methods are used to prevent thread execution ?

1033


What exactly is methodology?

920


What is string in java?

1012


What is difference between core java and java ee?

895


What about main() method in java ?

1017


What are data types in oop?

1034


What is finalize()? Is finalize() similar to a destructor?

964


what is predefined function in java?

980


Explain restrictions for using anonymous inner classes?

1090


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

1089


How do you declare an array that will hold more than 64KB of data?

1290


What do you mean by flow of struts?

1308


Why do we use return statement?

1035


Tell me the latest versions in java related areas?

1094


What is the tradeoff between using an unordered array versus an ordered array?

1233