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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which class is the immediate superclass of the menucomponent class?

635


What are JTA/JTS and how they used by client?

1720


How is a java object message delivered to a non-java client?

579


What value does readline() return when it has reached the end of a file?

598


What must a class do to implement an interface?

588






Why do I get a duplicate name error when loading a jar file?

548


What is table mutation and how do you avoid it?

1921


What is the relationship between an event-listener interface and an event-adapter class?

561


how i secure my site with the https protocol.what are the steps?

1741


When a thread blocks on i/o?

573


Can I use multiple html form elements with the same name?

585


What do you mean by Socket Programming?

553


What is difference between object state and behavior?

587


Why does the option tag render selected=selected instead of just selected?

682


What are the difference between RMI and CORBA?

623