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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
samba2
Posts: 6
Joined: Mon Sep 06, 2021 1:13 am
Contact:

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

Post by samba2 »

I believe there is a typo:

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

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 69 guests