File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes exception (source: K&B) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "exception (source: K&B)" Watch "exception (source: K&B)" New topic
Author

exception (source: K&B)

adam Lui
Ranch Hand

Joined: Sep 03, 2007
Posts: 186
from K&B


how can we possibly solve this error?
I tried different approach and not quite understood how...
Kelvin Chenhao Lim
Ranch Hand

Joined: Oct 20, 2007
Posts: 513
Hi Adam,

Animal.eat() declares a checked exception, so any client code must either catch the exception or declare the checked exception as well. Thus you have two options for fixing the compilation error:

Handling the checked exception:

Declaring the checked exception:


SCJP 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception (source: K&B)