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 you explain the Java thread lifecycle?



Can you explain the Java thread lifecycle?..

Answer / nashiinformaticssolutions

In Java, a thread can exist in any of the following states. The states are as follows:

New: When a new thread is first created, it is always in the new state. For a thread in the new state, the function hasn't begun to execute because it hasn't been performed yet.

Active: When a thread invokes the start() method, it moves from the new state to the active state. The active state contains both the running state and the runnable state.

Blocked or Waiting: When a thread is not active for a period of time (but not forever), it is either in the blocked state or the waiting state.

Timed waiting is what happens when we apply the sleep() technique to a certain thread.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why we can not force Garbage Collection?

7 Answers  


what is sendredirect?

7 Answers   TCS,


How can we make a class virtual?

0 Answers   Fidelity,


What will happen if static modifier is removed from the signature of the main method?

0 Answers  


Which is the best approach for creating thread ?

0 Answers  


what is object deep copy and shallow copy and why it is required?

2 Answers  


can we take more than one null values for Unique constraints.

1 Answers   3i Infotech,


Is it possible to override the main method?

0 Answers  


question on Thread synchronization

3 Answers   Huawei,


What is hard code & soft code?

7 Answers   Cognizant, Wipro,


What is the default initialized value of String type variable?

4 Answers  


What is the use of private static?

0 Answers  


Categories