I believe there is a typo:
in main you call the "start" method whereas in class Test there is a "run" method.
About Question com.enthuware.ets.scjp.v6.2.192 :
Moderator: admin
-
- Posts: 5
- Joined: Mon Sep 06, 2021 1:13 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.192 :
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.
Who is online
Users browsing this forum: No registered users and 6 guests