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: 6
- Joined: Mon Sep 06, 2021 1:13 am
- Contact:
-
- Site Admin
- Posts: 10053
- 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.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 53 guests