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
Can you use abstract and final both with a method?
What is serialversionuid?
What is the maximum size of arraylist in java?
Explain different types of wrapper classes in java?
What is difference between local variable and global variable?
What if constructor is protected in java?
Can an object be null?
Is final static java?
If goto and const is reserve words than why it is not work in java?
How we can declare a static variable?
What is the applet security manager, and what does it provide?
State the main difference between c++ and java?
what is collatration?
What is OOP's Terms with explanation?
Can static method access instance variables ?