About Question enthuware.ocpjp.v8.2.1825 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
bvrulez
Posts: 33
Joined: Sat Feb 15, 2020 12:44 am
Contact:

About Question enthuware.ocpjp.v8.2.1825 :

Post by bvrulez »

When is a parameterized method call usefull:

https://stackoverflow.com/questions/278 ... all-useful

aomk_17
Posts: 4
Joined: Thu Feb 04, 2021 10:48 pm
Contact:

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

Post by aomk_17 »

I believe the second answer choice explanation should say you can't specify generic type on the left hand side in this manner (it currently says right hand side)

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

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

Post by admin »

The right hand side has a problem. It is missing a dot i.e. it should be:
PlaceHolder<String, String> ph2 = PlaceHolder.<String>getDuplicateHolder("b");
instead of
PlaceHolder<String, String> ph2 = PlaceHolder<String>getDuplicateHolder("b");

That is why the explanation says Right hand side.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests