Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Minor typos Chapter 6 (Java OCA 8 Programmer I Study Guide)

 
Vincent Botteman
Greenhorn
Posts: 9
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found 2 small error in Chapter 6:
- page 314: ClassCastException: Thrown by the JVM when an attempt is made to cast an object to ...
- page 317: Third line: Common checked exceptions include the following:

I was also confused because a NumberFormat is stated as thrown by the programmer and not by the JVM but other threads in this forum seems to confirm this.
 
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
Vince Botteman wrote:- page 314: ClassCastException: Thrown by the JVM when an attempt is made to cast an object to ...

Correct! to cast an exception to a subclass should be to cast an object to a subclass

Vince Botteman wrote:- page 317: Third line: Common checked exceptions include the following:

Correct again! Common runtime exceptions should be Common checked exceptions

Vince Botteman wrote:I was also confused because a NumberFormat is stated as thrown by the programmer and not by the JVM but other threads in this forum seems to confirm this.

I think this thread discusses the NumberFormatException and if it's thrown by programmer/JVM in great detail.

Hope it helps!
Kind regards,
Roel
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35266
383
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Logged both in the errata. Thanks Vince!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic