This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exceptions" Watch "Exceptions" New topic
Author

Exceptions

Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
On page 382 of the Sierra/Bates SCJP 6.0 book, a table with exceptions and errors is presented.

I am trying to figure out why the authors use the phrases "Typically Thrown By tthe JVM"? and "Typically Thrown Programmatically" Do the authors refrain from the words Checked and Unchecked because this table also includes Errors?

Thanks,
Higgledy
Ruben Soto
Ranch Hand

Joined: Dec 16, 2008
Posts: 1032
Higgledy Smith wrote:On page 382 of the Sierra/Bates SCJP 6.0 book, a table with exceptions and errors is presented.

I am trying to figure out why the authors use the phrases "Typically Thrown By tthe JVM"? and "Typically Thrown Programmatically" Do the authors refrain from the words Checked and Unchecked because this table also includes Errors?

Thanks,
Higgledy

Hi,

What kind of exceptions (checked or unchecked) do you think the JVP typically throws? How about exceptions that are thrown programatically? I think they are completely different things. For example, I believe that all the exceptions shown in the table that you mention are unchecked (yet some are typically thrown by the JVM, and some are typically thrown programatically.)


All code in my posts, unless a source is explicitly mentioned, is my own.
Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
Ruben Soto wrote:
Higgledy Smith wrote:On page 382 of the Sierra/Bates SCJP 6.0 book, a table with exceptions and errors is presented.

I am trying to figure out why the authors use the phrases "Typically Thrown By tthe JVM"? and "Typically Thrown Programmatically" Do the authors refrain from the words Checked and Unchecked because this table also includes Errors?

Thanks,
Higgledy

Hi,

What kind of exceptions (checked or unchecked) do you think the JVP typically throws? How about exceptions that are thrown programatically? I think they are completely different things. For example, I believe that all the exceptions shown in the table that you mention are unchecked (yet some are typically thrown by the JVM, and some are typically thrown programatically.)




Thanks. I never looked at that table like you stated.



Ruben Soto
Ranch Hand

Joined: Dec 16, 2008
Posts: 1032
Yes, it's easy to fall into the temptation, but they are completely different concepts.
 
jQuery in Action, 2nd edition
 
subject: Exceptions