• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The answer G shouldn't be true, on page 225 (Java OCA 8 Programmer I Study Guide)

 
Saad Benbouzid
Greenhorn
Posts: 20
Chrome IntelliJ IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mock Question #19, Chapter 4.

The results page says the answers are A and G.

But answer G doesn't compile !

G. public class Bird { void Bird() { }

The closing bracket is missing at the end.
So answers should be only answer A. (A. public class Bird { }).
 
Paweł Baczyński
Bartender
Posts: 1877
35
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

You are right

This is a typo. It is already known and reported here.
 
Saad Benbouzid
Greenhorn
Posts: 20
Chrome IntelliJ IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, I had this link before my eyes but I haven't seen it was already reported since I've been looking for "#19" instead of "19" in my browser (Ctrl-F)...

Please rename it from "In the choice G of mock question 19, the closing } is missing." to "In the choice G of mock question #19, the closing } is missing.".
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saad Benbouzid,

First of all, a warm welcome to CodeRanch!

Saad Benbouzid wrote:Please rename it from "In the choice G of mock question 19, the closing } is missing." to "In the choice G of mock question #19, the closing } is missing.".

To be consistent with other errata items in the overview and to make it more obvious for the reader, it should be updated to something like this: #19 - In the choice G, the closing } is missing. Give yourself if you got the answer right except for leaving out G.

Kind regards,
Roel
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saad Benbouzid wrote:Please rename it from "In the choice G of mock question 19, the closing } is missing." to "In the choice G of mock question #19, the closing } is missing.".

Sure. Updated.

Roel: I don't consistently start with that format. In fact, the row right about this one doesn't. I'd also like to establish that I don't have any consistent "style guide" for that web page.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Roel: I don't consistently start with that format. In fact, the row right about this one doesn't.

Yeah, I noticed that as well My previous post just suggested (reading between the lines): it would be nice if all errata items about chapter mock questions used this consistent style
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic