This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Sybex OCP Java 8 Study Guide Errata ? Chapter 1 question 20 and 21  RSS feed

 
Greenhorn
Posts: 9
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Not sure if i'm correct. but here goes.


Question 20:
Either the code is 'wrong' or the answer is 'wrong'
if the answer is correct
I suppose the print statement should be print instead of println
else if the question is correct
then the answer should not be walk, toddle,
but rather:
walk, \n toddle \n


Question 21: Which of the following could be inserted to fill in the blank?
The question should be something more like: Which of the following could be inserted (together) to fill in the blank?

Because as long as E isn't there you can not place A or C. Because you will get a compile error. (since the first concrete class has to implement all abstract method's)

At this time you can argue about it on how you interper the question.

(i do know that the real exam will tell you how many answer you have to choose)
(i only gave E as an answer and was quite supprised that A and C where possible, but A or C without E does not compile)

Just let me know.

Kind regards
Joris

//off topic, why do i need to recieve monthy spam just to post a new topic... that is just garbage, plain garbage....



 
author & internet detective
Posts: 39129
723
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For #20 - great catch! Have a cow for that! I've added it to the errata.

For #21 - that's a good point. I'll note it as a clarification on my private list as it could be clearer.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!