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
Difference between collection, collection and collections in java?
Why is the singleton pattern considered to be an anti pattern?
What are the elements of java?
Can a list be null in java?
can I implement my own start() method? : Java thread
How many types of variables are there?
When do we use hashset over treeset?
What are abstract classes and anonymous classes?
Explain the difference between protected and default access.
Which collection does not allow duplicates in java?
What is module with example?
What checkbox method allows you to tell if a checkbox is checked?
What’s the difference between constructors and other methods?
What is the main advantage of passing argument by reference?
What is Hierarchy of exception?