five options are provided, user has to select one.Given that SomeException is a checked exception, consider the following code:
//in file A.java
public class A{
protected void m() throws SomeException{}
}
//in file B.java
public class B extends A{
public void m(){ }
}
//in file TestClass.java
public class TestClass{
public static void main(String[] args){
// insert code here. // 1
}
}
Which of the following options can be inserted at //1?
But, as far as my editor is working I can insert anything at line //1 .
The question should say, what the code should do when trying to compile and start.
For example: should compile, but throw an exception at runtime
or: Should compile and run without throwing an exception.
BTW, exam in 2 days, last day test score was 75%, test 4 was 77%, test 5 was 70%.