while creating thread why we extend thread class

Answer Posted / pamal janveja

To create User Defined thread, We requires features of thread
and java provide us Thread class.
We simply over right its run method and called this by start method which internally call to run method.
Similarly using other methods of Thread class , we can create,access and delete user defined thread.

Note:- Without Thread class or Runnable interface , We can not create User defined Thread.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override constructors in java?

683


Tell us something about set interface.

569


What is anti pattern in java?

520


What is a conditional statement explain with example?

545


Why do we create public static method in java?

586






What is regex used for?

551


Define an enumeration?

615


What is java util list?

489


Define iterator and methods in iterator?

547


What is garbage collection? What is the process that is responsible for doing that in java?

663


What is java jit compilers?

562


What is string in java with example?

495


What are the concepts of 'OOPS'?

607


What is the use of using enum to declare a constant?

562


What is a Presistent Object?

647