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

Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

988


What is meant by javabeans?

1095


Why do we use return statement?

1050


What are three advantages of using functions?

1015


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1075


What is linked hashset and its features?

1066


If a method is declared as protected, where may the method be accessed in java programming?

1004


Define class?

1060


Can you extend singleton class?

1111


What is collections framework?

1157


What is pojo class in java?

1113


Which variables are stored in stack?

907


What is the purpose of assert keyword used in jdk1.4.x?

1067


why java does not support unsigned keyword?

5268


what are three ways in which a thread can enter the waiting state? : Java thread

1032