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 is exception in java?
What flag up means?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is multi level inheritance in java?
What happens when I use / and % with a negative numerator?
What is the default value of float and double datatype in java?
What is bom encoding?
Will minecraft java be discontinued?
Is singleton thread safe in java?
What are triggers in DB? Explain their types. How do they work?
What happens if we override private method?
What about instanceof operator in java?
What are the restrictions imposed on method overriding?
How can you share data between two thread in Java?
What a static class can contains?