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!

RuntimeException vs AssertionError

807603Oct 21 2007 — edited Oct 23 2007
I am wondering when a program should throw a RuntimeException and when an AssertionError. It seems both are used to indicate programming errors. So, when should one choose to throw an AssertionError over a RuntimeException?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2007
Added on Oct 21 2007
7 comments
581 views