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

what are the advantages of JTA over JTS?

1766


How many times may an objects finalize() method be invoked by the garbage collector?

758


Is the infobus client side only?

735


Can I map more than one table in a cmp?

676


How task's priority is used in scheduling?

1877






What is the difference between the ‘font’ and ‘fontmetrics’ class?

728


How can I avoid validating a form before data is entered?

632


What is the difference between the session.get() method and the session.load() method?

689


What are the oops concept?

664


Difference between swing and awt?

698


Explain what is synchronization?

676


What are various types of class loaders used by jvm?

594


What are the services in RMI ?

1987


What is the relationship between local interfaces and container-managed relationships?

701


What is a class loader? What are the different class loaders used by jvm?

669