Home » java » Thread stop method in Java

Thread stop method in Java

In java, stop()  method  kills/terminates  the currently executing thread.

Result

Description: in the above program, when value of variable i=3 then stop() method terminates the curently executing thread and come out of the loop.

Managed by MochaHost - Fast & Easy WordPress Hosting