Another interruption

  • 4
  • Locked
Create a TestThread. In the main method, create a thread, run it, and then interrupt it using the interrupt() method.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jonaskinny Java Developer at Sandmedia
11 March 2022, 17:01
So much for best practices (always name your threads ... when it comes to logging it's imperative). TestThread t = new TestThread("threadname"); Adding public TestThread(String name) {super(name);} fails validation :( Validator failure message: X The main method must create a TestThread object.
Jonathan Feller
Level 17 , Munich, Germany
2 October 2019, 12:31
lol, after the last task this one is redundant and not even a real task after all...