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
What is final variable?
Can we use synchronized block for primitives?
Variables used in a switch statement can be used with which datatypes?
What is port number in java?
What are actual parameters?
What exactly is methodology?
Is 0 a prime number?
When throw keyword is used?
What is return data type?
What do you mean by of string::valueof expression in java 8?
Convert a BST into a DLL and DLL to BST in place.
Print Vertical traversal of a Binary Tree.
What is a java predicate?
What are data types in oop?
What are the two basic ways in which classes that can be run as threads may be defined?