Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1167 :

Posted: Tue Jun 03, 2014 4:06 pm
by gabtoth
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?
five options are provided, user has to select one.

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%.

Re: About Question enthuware.ocajp.i.v7.2.1167 :

Posted: Tue Jun 03, 2014 8:04 pm
by admin
Sure, gabtoth. The problem statement has been updated to make it clear.
thank you for your feedback!
Paul.

Re: About Question enthuware.ocajp.i.v7.2.1167 :

Posted: Thu Jun 05, 2014 1:52 pm
by gabtoth
It's not the right place for this here.
But in my previous post i mentioned, that i was going to exam.
It's done, passed with 88%

Thank You enthuware.