class X { void doSomething(int a, float b) { } } class Y extends X{ public void doSomething(int a, float b)throws java.io.IOException { ... } }