Answered Questions

  • Given the two methods:

    void f() throws IOException Which of the following is/are correct overriding method? a) void f() throws IOException b) public void f() c) void f() throws FileNotFoundException d) void f() throws Exception

    imAjit

    • Dec 24th, 2012

    a) void f() throws ioexception Bcoz the overriding method must NOT throw checked exceptions that are new or broader than those declared by the overridden method. For example, a method that declares a...