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 the difference between hashmap and hashtable in java?
Can a class declared as private be accessed outside it’s package?
What are the different conditional statements?
Is java util regex pattern thread safe?
Can we make a constructor final?
Can a abstract class be defined without any abstract methods?
What is the difference between normal report & matrix report?
How to read and write image from a file ?
What are the features of junit?
What is lazy programming?
What is autoboxing and unboxing?
Which is easier netbeans or eclipse?
What is widening and narrowing in java? Discuss with an example.
Does importing a package imports its sub-packages as well in java?
What do you understand by synchronization?