Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

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

 
Greenhorn
Posts: 9
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41763
885
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
Logged both in the errata. Thanks Vince!
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic