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 / abcd

Suppose ..you want to work with thread and also with a
class from AWT package.

java rule is that : YOu cannot extend more one class in
your program.

So it is adviseable to implement the runnable interface and
extend any other class which you desire....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does java se mean?

965


What is structure of java heap? What is perm gen space in heap?

1049


Why super is first line in java?

997


Difference between final and effectively final ? Why is effectively final even required ?

931


What are different types of states exist for a thread?

961


How can you add and remove nodes in jtree?

972


Can two objects have same hashcode?

944


What do you mean by an object in java?

1077


What is a java predicate?

914


Are floats faster than doubles?

986


Where are local variables stored?

914


Implementations of set interface?

942


Define a package.

1009


Is void a wrapper class?

885


Is there a case when finally will not execute?

942