Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can u override the start() method of Thread class

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


Please Help Members By Posting Answers For Below Questions

Explain the difference between hashmap and hashtable in java?

886


Can a class declared as private be accessed outside it’s package?

949


What are the different conditional statements?

935


Is java util regex pattern thread safe?

971


Can we make a constructor final?

967


Can a abstract class be defined without any abstract methods?

934


What is the difference between normal report & matrix report?

1052


How to read and write image from a file ?

994


What are the features of junit?

995


What is lazy programming?

960


What is autoboxing and unboxing?

947


Which is easier netbeans or eclipse?

1008


What is widening and narrowing in java? Discuss with an example.

984


Does importing a package imports its sub-packages as well in java?

924


What do you understand by synchronization?

985