What happens when we invoke a thread?s interrupt method
while it is in sleeping or waiting condition?



What happens when we invoke a thread?s interrupt method while it is in sleeping or waiting conditi..

Answer / meeti

void interrupt()

This method interrupts the thread on which it is invoked. In
the Waiting-for-notification, Sleeping, or
Blocked-for-join-completion states, the thread will receive
an InterruptedException.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

what is Bootstrap loader program?

1 Answers   Rossell Techsys,


Why are component architectures useful?

0 Answers  


What is the main functionality of RRL(Remote Reference Layer)?

3 Answers  


Difference between DurableSubscription and non- DurableSubscription?

0 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,






What is the difference between RMI and Corba?

0 Answers   Infotech,


What is daemon thread?

3 Answers  


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

0 Answers  


Why DOM Parser would take more Memory than SAX parser while they are parsing?

3 Answers   OnMobile,


What is the RMI and Socket?

0 Answers  


What are the oops concept?

0 Answers  


What is a class loader?

0 Answers  


Categories