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
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is meant by javabeans?
Why do we use return statement?
What are three advantages of using functions?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is linked hashset and its features?
If a method is declared as protected, where may the method be accessed in java programming?
Define class?
Can you extend singleton class?
What is collections framework?
What is pojo class in java?
Which variables are stored in stack?
What is the purpose of assert keyword used in jdk1.4.x?
why java does not support unsigned keyword?
what are three ways in which a thread can enter the waiting state? : Java thread