Very misleading.
I chose "It cannot be parameterized as it is meant to deal only with int primitives." then the explanation of that answer being wrong is: "The parameter type cannot be parameterized, but return type can be as shown in explanation to option 1."
So... That means it cannot be parameterized! You can only change the return type, but you cannot change the amount and type(s) of the parameters!
That is the reason I chose D instead of B.
I do however agree with the explanation of B. So I think in this case the answer should be B & D. Not just B.
About Question enthuware.ocpjp.v8.2.1860 :
Moderators: Site Manager, fjwalraven
-
- Posts: 9
- Joined: Wed Dec 28, 2016 12:35 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1860 :
A function has two equally important things - input parameters and output value. In this case, only one of them can be parameterized. So I agree with you that there is a bit of ambiguity there. However, given that you have to select one option, you need to select the best answer, which happens to be option 2.
If you had to select 2 options, then this option should have been worded better.
thank you for your feedback!
Paul
If you had to select 2 options, then this option should have been worded better.
thank you for your feedback!
Paul
-
- Posts: 9
- Joined: Wed Dec 28, 2016 12:35 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1860 :
That's the problem there: the question doesn't imply that you have to choose the best answer: you have to choose "the correct answer".
Both B and D are correct.
Both B and D are correct.
Who is online
Users browsing this forum: No registered users and 6 guests