can u override the start() method of Thread class

Answer Posted / subhareddy

we can override start() method present in Thread class.but
we have to follow following steps:

1) first our class must extend thread class.
2)then we have to override thread class start() in such way
that :
a) It should instantiate and register our new thread with
thread scheduler.
b) it should call run() method.(it may be our overridden
run method or thread class run() method)

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean used for?

583


Does a class inherit the constructors of its superclass in java programming?

518


What is passing parameters in java?

509


What is the size of integer?

580


What is a map in java?

540






How does a for loop work java?

535


What is the function of character?

520


Why do we need data structure in java?

565


What technique can be employed to compare two strings?

567


Variables used in a switch statement can be used with which datatypes?

509


What is thread synchronization in java?

477


What are the main differences between the java platform and other platforms?

523


What is the purpose of main function in java?

531


What does the “static” keyword mean? Can you override private or static method in java?

621


What is the difference between method overriding and overloading?

571