This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes try catch........... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "try catch..........." Watch "try catch..........." New topic
Author

try catch...........

faiza haris
Ranch Hand

Joined: Oct 17, 2000
Posts: 173
why does it give ... undeclared exception e.......error?

I added some UBB code here. -Mapraputa
[This message has been edited by Mapraputa Is (edited October 19, 2000).]
Surya Bahadur
Ranch Hand

Joined: Sep 28, 2000
Posts: 88
Hi
You need to say that your method throws exception if you are throwing that exception in your code,so change the method signature to
private void test() throws MalformedURLException,EOFException
Then your code would compile,or comment out the throw statement in the catch block.
Surya
faiza haris
Ranch Hand

Joined: Oct 17, 2000
Posts: 173
thanx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: try catch...........
 
Similar Threads
exception ?
Exceptions
Exceptions...
Miscellaneous
Finally