This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The above code does not compile. It compiles fine if provided with throws MalformedURLException in the defnition of test(). My question it why is it asking for throws MalformedURLException in the method test() when it is already provided with IOexception(which is a superclass of MalformedURLException). Thanx. [added CODE tags for readability, and fixed overlong line - Jim]
[This message has been edited by Jim Yingst (edited February 07, 2000).]
It compiles fine for me using jdk 1.2.2 or jdk 1.3 beta for Windows. What compiler are you using, and on what platform? Your logic is correct - there should be no need for a throws MalformedURLException if there is already a throws IOException. I'd assume it's a bug in your compiler.
"I'm not back." - Bill Harding, Twister
Joined: Nov 22, 2008
Jim: I am using JDK 1.2 on windows 95. Thanks for u'r reply.