Wei-qiang Zhou

Greenhorn
+ Follow
since Feb 27, 2020
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Wei-qiang Zhou

Yes, the book only mentions one of the two compiler errors which I think is an errata. It should also mention the other compiler error or mark the method with abstract.
Hi

I think I found an incomplete explanation in the book "OCP Oracle Certified Professional Java SE 11 by Jeanne Boyarsky and Scott Selikoff".

On page 368 of the book the following code is given:



The explanation given for the "sleep" method is:

The next method,sleep, does not compile because it is missing parentheses, (), for method arguments.


While this is true it would not result in it being able to compile. It must also be provided a body enclosed in braces or be marked abstract.
Hi

I found a typo in the book "OCP Oracle Certified Professional Java SE 11 by Jeanne Boyarsky and Scott Selikoff".
On page 205 of the book in Table 5.7 it says "getOrDeafult" it should be "getOrDefault". I checked the errata and didnt see it there.