Page 1 of 1

Re: About Question com.enthuware.ets.scjp.v6.2.192 :

Posted: Sun Dec 05, 2021 4:56 pm
by samba2
I believe there is a typo:

in main you call the "start" method whereas in class Test there is a "run" method.

Re: About Question com.enthuware.ets.scjp.v6.2.192 :

Posted: Sun Dec 05, 2021 10:18 pm
by admin
No, it is fine. Class Test extends Thread, so it inherits the start method from Thread. The code in main calls start(). The start method internally invokes run.