Page 1 of 1

About Question enthuware.ocpjp.v21.2.3220 :

Posted: Sat Mar 15, 2025 9:53 am
by ftejada
Given the code snipped
public class X {
//line 1: insert code here
}
there is no way var al = new ArrayList<>() can fit on line 1, assuming we're talking about field declaration, source: https://openjdk.org/projects/amber/guid ... n%20types.

I think we should either point out that //line 1 could be part of a method (in that case all suggested answers would make sense) or assume that the class defines other instance members (which would likely make option String s = asdf valid, assuming that the field asdf is declared somewhere within the scope of X and is of type String)

Thanks,

Re: About Question enthuware.ocpjp.v21.2.3220 :

Posted: Sat Mar 15, 2025 11:15 am
by admin
Not sure I understand your point. It is an incorrect option, right?

Re: About Question enthuware.ocpjp.v21.2.3220 :

Posted: Sat Mar 15, 2025 2:32 pm
by ftejada
The question expects var al = new ArrayList<>() to be correct, but the way it's formulated, there is no way that option can be valid.

question:
Which of the following are valid at line 1?
public class X {
// line 1: insert code here
}
expected answers:
String s = this.toString; // OK
String s; // OK
var al = new ArrayList<>(); // impossible (c.f. refer to my suggestions in the initial post)
Hope I made my point clear this time, thx.

Re: About Question enthuware.ocpjp.v21.2.3220 :

Posted: Sat Mar 15, 2025 8:04 pm
by admin
I see that it is marked as incorrect and an explanation is also given for this option. Only two options are marked correct.

See screenshot here: https://ibb.co/RpcrcFRq

Please confirm if you are seeing something else.

Re: About Question enthuware.ocpjp.v21.2.3220 :

Posted: Sun Mar 16, 2025 3:02 pm
by ftejada
I do have something else https://ibb.co/ZyJCWLb, maybe it's an outdated version ? I'm using build 20220606

Re: About Question enthuware.ocpjp.v21.2.3220 :

Posted: Sun Mar 16, 2025 8:35 pm
by admin
You have an older version of the question bank (not ETS Viewer). You can update the qb from ets viewer using Tools -> Check for question bank update menu.

Re: About Question enthuware.ocpjp.v21.2.3220 :

Posted: Tue Mar 25, 2025 8:43 pm
by maruusa
admin wrote:
Sat Mar 15, 2025 11:15 am
Not sure I understand your point. It is an incorrect option, right? Slither io
Do you have any questions or concerns about this issue?