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
What is hotjava?
What technique is carried out to find out if a particular string is empty?
How do singleton patterns work?
What are methods of a class?
What is byte data type?
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?
Differentiate between run time error and syntax error.
What is a instance variable in java?
what is session in java?
What is difference between hashset and hashmap in java?
What is classpath?
What is the difference between access specifiers and access modifiers in java?
What is the difference between replace and replace all?
What is the benefit of using enum to declare a constant?
How do you read a char in java?