Page 1 of 1

About Question enthuware.ocpjp.v8.2.1824 :

Posted: Mon Feb 12, 2018 5:45 am
by radovanthefoley
The official answer says:
You could write the same method in the following way also:

Code: Select all

public static PlaceHolder<X, X> getDuplicateHolder(X x){
     return new PlaceHolder<>(x, x); //use diamond operator because we already know that X is a generic type. 
}
I think it still needs generic type parameter definition in order to compile, so the following instead:

public static <X> PlaceHolder<X, X> getDuplicateHolder(X x){     
    return new PlaceHolder<>(x, x);
}

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Mon Feb 12, 2018 6:06 am
by admin
Yes, I see that <X> is present. Screenshot attached. Are you seeing something else? Kindly post screenshot.

thank you,
Paul.
test.png
test.png (24.79 KiB) Viewed 7960 times

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Tue Feb 13, 2018 4:16 am
by radovanthefoley
I have purchased the exam last week. Was there some update in the meantime?

EDIT: according to updater I have the most up to date one.

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Tue Feb 13, 2018 8:00 am
by admin
You do seem to have the latest version and there hasn't been any change after this.
It might be an issue with the specific OS/JDK combination. Can you please tell me what os and jdk are you using?

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Tue Feb 13, 2018 10:53 am
by radovanthefoley
H:\>java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

H:\>ver

Microsoft Windows [Version 10.0.16299.192]


EDIT: updated java version, still the same answer

H:\>java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Tue Feb 13, 2018 11:53 pm
by admin
Ok, I found the problem. I was looking at the question bank for the 809 exam. The <X> is actually missing in the version of the question bank for the 813 exam, which is probably what you are using. This was fixed in 809 question bank a while back but the same fix was not applied to the 813 version.

It has now been fixed and the version number has been updated.

thank you for your feedback!
Paul.

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Wed Feb 14, 2018 7:59 am
by radovanthefoley
Thank you. You are right, I am using upgrade exam set (1Z0-813) and can confirm update fixes it.

Forum link in app brought me here, did not notice that the content is shared across many exams per question. Will mention the exam code next time :)

Re: About Question enthuware.ocpjp.v8.2.1824 :

Posted: Wed Feb 14, 2018 8:29 am
by admin
radovanthefoley wrote:Thank you. You are right, I am using upgrade exam set (1Z0-813) and can confirm update fixes it.

Forum link in app brought me here, did not notice that the content is shared across many exams per question. Will mention the exam code next time :)
No, you should not have to mention the exam code. The question is shared because this topic is included in both the exams. That is why clicking the discuss button on the question view brought you to this same page.

The question should have been updated in both the places at the same time. Our fault :(

thank you for your feedback!