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
How can we create a thread in java?
What is the difference between post and put?
What is the purpose of the runtime class in java programming?
What is the purpose of the System class?
What does the exclamation mark mean in java?
What is your platform?s default character encoding and how to know this?
What is the difference between size and length in java?
Discuss different types of errors that generally occur while programming.
Does java support multiple inheritances?
What is final variable?
What are voids?
What is array sorting in java?
What are data types in oop?
How would overload a function based on return type?
Is java a prime method?