why Runnable interface is preferable than extending the
Thread class?
Answer Posted / suresh
u know that java not supporting multiple inheritance.if u
extend thread class,u can't extend any class which you
required other than thread class.if u are implementing
runnable interface u can extend any class which you required
other than thread class.this is main advantage of
implementing runnable interface.
Is This Answer Correct ? | 115 Yes | 13 No |
Post New Answer View All Answers
'A class is a template for an object' explain this statement.
Can we access the non-final local variable, inside the local inner class?
What is a numeric format?
What is the java idl system?
What is static data type in java?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is the difference between stringbuffer and stringbuilder class?
What is java full form?
Can a string be null?
What is the purpose of using the java bean?
What is class variable java?
What is the main use of generics in java?
What is data object example?
What is arrays fill in java?
Define jre i.e. Java runtime environment?