JDBCSupport - An easy to use, light-weight JDBC framework -
JDBCSupport - An easy to use, light-weight JDBC framework -
richard rehl wrote:
Therefore, the compiler shouldn't care that Ping.getInt() doesn't throw any exceptions... right? But it does.
richard rehl wrote:
BTW, the book says that only A and C are correct, yet if you take the statement "What changes allow the code to compile? Choose all that apply" at face value, answers D, E, F, and G are also true.
richard rehl wrote:OK, so let me get this straight. Even though overridden methods may throw narrower or fewer exceptions, if the superclass method throws a checked exception, and there's a superclass reference to a subclass object, and that reference calls the overridden method, the subclass method then must throw the same exceptions?
Consider Paul's rocket mass heater. |