What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class?
Answer Posted / abcd
Suppose ..you want to work with thread and also with a
class from AWT package.
java rule is that : YOu cannot extend more one class in
your program.
So it is adviseable to implement the runnable interface and
extend any other class which you desire....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does java se mean?
What is structure of java heap? What is perm gen space in heap?
Why super is first line in java?
Difference between final and effectively final ? Why is effectively final even required ?
What are different types of states exist for a thread?
How can you add and remove nodes in jtree?
Can two objects have same hashcode?
What do you mean by an object in java?
What is a java predicate?
Are floats faster than doubles?
Where are local variables stored?
Implementations of set interface?
Define a package.
Is void a wrapper class?
Is there a case when finally will not execute?