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
Is null a string in java?
What is the difference between arraylist and hashset in java?
What is collections framework?
Is array an object in java?
Why java doesn’t support multiple inheritances?
What is square root in java?
What is the meaning of nullable?
What are use cases?
Which is a valid identifier?
Is minecraft 1.15 out?
What is a treeset in java?
Can a class have multiple superclasses?
What is java util hashmap?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is nan in java?