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

whats is mean by connectionpooling

0 Answers   SolutionNET,


Can I have an action without a form?

0 Answers  


What is the name of the state, when a thread is executing?

4 Answers  


What are the purpose of introspection?

0 Answers  


wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,






Explain the stub's and skeleton's functionality?

7 Answers  


what is the difference between System.out.println and out.println in java

10 Answers   CTS,


Are we allowed to change the transaction isolation property in middle of a transaction?

0 Answers  


What are the different methods of identifying an object?

0 Answers  


explain the flow of struts?

2 Answers   SolutionNET,


What is metaspace?

0 Answers  


What is the difference between the string and stringbuffer classes?

0 Answers  


Categories