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

why Runnable interface is preferable than extending the
Thread class?

Answer Posted / rameshkrishna

imolimen Runnabule inerface and extends Thread functionally
both are same.But implimenting RunnebleInterface more
advantage because of there is possibility extends more then
one class and also we can override run() only once.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hotjava?

994


What technique is carried out to find out if a particular string is empty?

1002


How do singleton patterns work?

954


What are methods of a class?

1016


What is byte data type?

981


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

967


Differentiate between run time error and syntax error.

1105


What is a instance variable in java?

1030


what is session in java?

1231


What is difference between hashset and hashmap in java?

990


What is classpath?

992


What is the difference between access specifiers and access modifiers in java?

1154


What is the difference between replace and replace all?

1001


What is the benefit of using enum to declare a constant?

1086


How do you read a char in java?

1001