In the correct answer you say that run() method is defined in Thread. But as a matter of fact run() is defined in the java.lang.Runnable interface.
Moreover, "synchronize" is not a keyword, the correct keyword is "synchronized".
About Question com.enthuware.ets.scjp.v6.1.813 :
Moderator: admin
-
- Site Admin
- Posts: 10079
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.1.813 :
run() method is "declared" in Runnable but it is indeed "defined" in Thread class.
The typo with synchronized should be fixed asap.
thanks for reporting!
The typo with synchronized should be fixed asap.
thanks for reporting!
If you like our products and services, please help us by posting your review here.
Re: About Question com.enthuware.ets.scjp.v6.1.813 :
Yes, you're right! Thanks!
Who is online
Users browsing this forum: No registered users and 13 guests