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

What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class?

Answer Posted / bindhu solomon

Creating a thread using implementing Runnable interface
are more advisable. Suppose we are creating a thread by
extending a thread class, we cannot extend any other class.
If we create a thread by implementing Runnable interface,
we can extend another class.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have more than one package statement in source file ?

1091


What is the synchronized method modifier?

1275


What is the difference between yield() and sleep()?

1062


How listener identify that the event came from a particular object?

2052


How a string is stored in memory?

1077


What is variable explain with example?

1109


How would you dynamically allocate memory to an array?

1075


How do you implement singleton class?

1034


What is module in oop?

1074


placement papaers of spring computing technology

1454


In case of inheritance what is the execution order of constructor and destructor?

1183


What are actual parameters?

1090


Can constructor be static or final?

1157


How to retrieve data from database in java using arraylist?

1100


What is a local class in java?

1084