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

wahts is mean by dynavalidatorform in struts/

1557


What is chat area? Explain.

548


What is bean? Where can it be used?

566


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

552


What are transaction attributes?

602






What is message driven beam?

571


Describe responsibilities of Activator?

1655


Can I run seam with jdk 1.4 and earlier?

544


What is the relationship between the canvas class and the graphics class?

532


What is the difference between java class and bean?

573


What is mdb and what is the special feature of that?

556


Is there a guarantee of uniqueness for entity beans?

555


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

661


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

566


what is a portable component?

1451