When is a parameterized method call usefull:
https://stackoverflow.com/questions/278 ... all-useful
About Question enthuware.ocpjp.v8.2.1825 :
Moderator: admin
-
- Posts: 33
- Joined: Sat Feb 15, 2020 12:44 am
- Contact:
-
- Posts: 4
- Joined: Thu Feb 04, 2021 10:48 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1825 :
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)
-
- Site Admin
- Posts: 10115
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1825 :
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.
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.
Who is online
Users browsing this forum: No registered users and 16 guests