Link to home
Start Free TrialLog in
Avatar of hmlau
hmlau

asked on

warning: stop() in java.lang.Thread has been deprecated

Hi All,

I'm beginner 4 Java,
I found this msg when I try to compile my code..
How could I solve this ?

Thank You.
ASKER CERTIFIED SOLUTION
Avatar of kotan
kotan
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mick Barry
Careful there, interrupt() and stop() do very different things.
stop() is deprecated because it is error prone as mentioned in the javadoc.
Avatar of hmlau
hmlau

ASKER

 
Hi objects,

May I know what is the difference between stop() and interrupt() ??

Thanks.