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 boolean used for?
Does a class inherit the constructors of its superclass in java programming?
What is passing parameters in java?
What is the size of integer?
What is a map in java?
How does a for loop work java?
What is the function of character?
Why do we need data structure in java?
What technique can be employed to compare two strings?
Variables used in a switch statement can be used with which datatypes?
What is thread synchronization in java?
What are the main differences between the java platform and other platforms?
What is the purpose of main function in java?
What does the “static” keyword mean? Can you override private or static method in java?
What is the difference between method overriding and overloading?