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 local interfaces? Describe.

691


what is meant by JRMP?

1805


What happens when a thread cannot acquire a lock on an object?

531


Explain the difference between object state and behavior?

558


What class is used to create Server side object ?

1661






What does module-relative mean?

569


What is prototype?

599


Why is string immutable in java?

573


What restrictions are placed on the values of each case of a switch statement?

529


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

533


Define the remote object implementation?

1991


Why use a datasource when you can directly specify a connection details?

531


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1742


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

666


What is the relation between the infobus and rmi?

550