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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
gabtoth
Posts: 4
Joined: Wed Apr 23, 2014 9:09 pm
Contact:

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

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

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Sure, gabtoth. The problem statement has been updated to make it clear.
thank you for your feedback!
Paul.

gabtoth
Posts: 4
Joined: Wed Apr 23, 2014 9:09 pm
Contact:

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

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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests