Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Errata for Chapter 4 question 14

 
Diego Moncayo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The stream is being used twice (line 5 and 6) so the execution of the code throws an exception. The answer would be F instead of D
 
Roel De Nijs
Sheriff
Posts: 10763
147
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
Always useful to mention the study guide in the subject (and/or post)
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35753
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Diego,
Welcome to CodeRanch! That question looks like it is from my book (Sybex.)

D is that the code doesn't compile.  Which it doesn't. So the fact that it would throw an exception if it did compile never comes up. Code has to compile for runtime errors to be a problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!