This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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...........
 
jQuery in Action, 3rd edition