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
Why synchronization is important?
Define locale.
What if constructor is protected in java?
What are the different types of garbage collectors in java?
What is stack class in java?
Is array synchronized in java?
Explain the JDB in depth & command line.
Explain what is Marker interface?
why we use merge option in hybernate pls give a ex snippet
What is return data type?
How do you define a singleton class?
Why we used vector class?
What is the purpose of using javap?
What is main function purpose?
Can a class be private in java?