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 bifunction in java?
What is flush () in java?
how to open and edit XML file in Weblogic???
What is are packages?
What is a concrete classes? Is Java object class is concrete class?
Explain reverse a linked list recursive java solution?
What do you mean by composition in java?
What is command line argument in java?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is incompatible types in java?
Which number is denoted by leading zero in java?
What is an immutable class?
What is xslt in java?
How do you identify if jvm is 32-bit or 64-bit from java program?
Can we print null in java?