Post

🌒 Eclipse Java IDE
🌒 Eclipse Java IDE@EclipseJavaIDE·
A marked lower reply rate to this puzzle shows that people really "love" threads ;) No exception here and "Hi Hi" is the output. Congrats to those who got it!
English
2
0
15
0
Chris Uchizono
Chris Uchizono@ItzSomebody_·
@EclipseJavaIDE This will print "Hi Hi " Test#run() will print one "Hi " Test#interrupt() will interrupt the current thread which is allowed since it is interrupting itself. Test#start() will print the second "Hi " because the class extends Thread.
English
0
1
1
0
Paylaş