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 final variable?

501


Can we use synchronized block for primitives?

607


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

522


What is port number in java?

596


What are actual parameters?

524






What exactly is methodology?

491


Is 0 a prime number?

575


When throw keyword is used?

594


What is return data type?

563


What do you mean by of string::valueof expression in java 8?

546


Convert a BST into a DLL and DLL to BST in place.

674


Print Vertical traversal of a Binary Tree.

612


What is a java predicate?

537


What are data types in oop?

557


What are the two basic ways in which classes that can be run as threads may be defined?

554