Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java terminology: "throw" vs "raise"

807603Feb 12 2008 — edited Feb 12 2008
Is there any subtle difference between the terms "raise" and "throw" when talking about exceptions?

The jvm-spec for instance uses both:

from: http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc6.html
"+Otherwise, an AbstractMethodError is raised.+"

from http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html
"+If objectref is null, athrow throws a NullPointerException instead of objectref.+"
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2008
Added on Feb 12 2008
8 comments
705 views