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

Difference between collection, collection and collections in java?

965


Why is the singleton pattern considered to be an anti pattern?

859


What are the elements of java?

985


Can a list be null in java?

1007


can I implement my own start() method? : Java thread

945


How many types of variables are there?

1092


When do we use hashset over treeset?

1002


What are abstract classes and anonymous classes?

1040


Explain the difference between protected and default access.

969


Which collection does not allow duplicates in java?

937


What is module with example?

952


What checkbox method allows you to tell if a checkbox is checked?

962


What’s the difference between constructors and other methods?

956


What is the main advantage of passing argument by reference?

925


What is Hierarchy of exception?

1047