• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Greenhorn
Posts: 9
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 40392
821
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic