• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sybex OCA Java 8 Study Guide: Chapter 4 #7 Errata?  RSS feed

 
Charles O'Leary
Ranch Hand
Posts: 175
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Especially when you don't know how many to select from Sybex OCA Java 8 Study Guide: Chapter 4 #7, I fully understand that C is correct (because it doesn't compile), but E uses C's bad reference to read an instance variable (and thus doesn't compile?), but E is considered the correct answer to compile?  In other words, have I made (somewhat of) a valid case for "Choose (4 or 5)" for this particular question?  
Sybex_Chapter_4_Number_7_Choose_X_Question.png
[Thumbnail for Sybex_Chapter_4_Number_7_Choose_X_Question.png]
 
Charles O'Leary
Ranch Hand
Posts: 175
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correction: E is considered the incorrect answer because it compiles?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36659
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charles O'Leary wrote:Correction: E is considered the incorrect answer because it compiles?

Correct. Compiler errors aren't transitive.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!