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: 3
- 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: 10388
- 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.
Who is online
Users browsing this forum: No registered users and 4 guests