Given below the sample code :
import java.io.IOException;
class Example7 {
public float Twin(float x, float y)
throws IOException {
return 0;
}
}
class SubExample7 extends Example7 {
float Twin(float x, float y) {
return 0;
}
}
Is the above code run successfully ?Choose correct options :
1.Yes ,overloading is correct.
2.Yes , overriding is correct.
3.No, overriding is incorrect.
4.Compile successfully but not run.
(3)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.