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

Realized?

2126


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

959


Difference between nested and inner classes ?

1052


What does a method signature consist of?

924


What is t type java?

1009


Can we have 2 main methods in java class?

949


What is instance means in java?

992


What is an object's lock and which object's have locks in java programming?

998


What is tcp and udp?

951


Can you explain inner class.

1020


Does garbage collection occur in permanent generation space in jvm?

1022


How a variable is stored in memory?

922


What is tostring () method?

951


What is the difference between abstraction and encapsulation?

1000


What is * argv?

1162