File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes what's the difference between Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "what Watch "what New topic

what's the difference between "throws Exception" and "throws Throwable"?

jaman tai
Ranch Hand

Joined: Sep 26, 2005
Posts: 37
could anyone tell me? thanks!
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
Throwable is superclass of Exception, if you throw Throwable, Exception is covered/throwed automatically

It is sorta covered in the JavaRanch Style Guide.
subject: what's the difference between "throws Exception" and "throws Throwable"?