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
Explain about assignment statement?
What is meant by local variable and instance variable?
What is difference between call by value and call by reference?
What is string :: npos?
When will you define a method as static?
What is the instance of an object?
Are variables stored in ram?
Explain the scope of a variable.
What are checked exceptions?
Which arithmetic operations can result in the throwing of an arithmeticexception?
What are thread local variables?
What is a class in java?
What is empty string literal in java?
What do you know about the garbage collector in java?
Why runnable interface is used in java?