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 the difference between a menuitem and a checkboxmenuitem?

0 Answers  


What is a session? Can you share a session object between different theads?

0 Answers  


What is a compilation unit?

1 Answers  


what is domain,give me some brief information about that?

1 Answers  


What do you need to set-up a cluster with jboss?

0 Answers  






What is Introspection?

2 Answers  


What is the argument type of a programs main() method?

0 Answers  


What method is used to create the daemon thread?

1 Answers  


What is abstract schema?

0 Answers  


how team leaders assign work for the team member like through papers,word document

1 Answers   TCS,


Can we sent objects using Sockets?

0 Answers  


Brief description about local interfaces?

0 Answers  


Categories