Create a TestThread.
In the main method, create a thread, run it, and then interrupt it using the interrupt() method.
Another interruption
- 4
Locked
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.
0
Jonathan Feller
2 October 2019, 12:31
lol, after the last task this one is redundant and not even a real task after all...
0