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
How to call one constructor from the other constructor ?
How do you get the length of a string in java?
What is core java called?
Can you call one constructor from another if a class has multiple constructors?
Is a method a procedure?
What is type conversion in java?
Why do we need wrapper classes?
What package is math in java?
Is hashset ordered java?
What is meant by class loader? How many types are there? When will we use them?
What are three ways in which a thread can enter the waiting state in java programming?
Explain about map interface in java?
Is class forname reflection?
Why pointers are not used in java?
Why do we need wrapper class?