About Question enthuware.ocpjp.v8.2.1836 :
Moderator: admin
-
- Posts: 27
- Joined: Fri Jul 22, 2016 9:14 am
- Contact:
About Question enthuware.ocpjp.v8.2.1836 :
I think there is an error, as my answer (considered wrong) matches the explanation to the answer considered "correct". Please see the screenshot attached.
There is a missing closing bracket in the explanation: "Map<K,List<T>>"
There is a missing closing bracket in the explanation: "Map<K,List<T>>"
- Attachments
-
- error_in_test3.tiff (216.71 KiB) Viewed 5156 times
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1836 :
The answer is correct. The output contains C#, C# because the toString method of Course returns id+" "+category;
If you like our products and services, please help us by posting your review here.
-
- Posts: 1
- Joined: Sun Aug 04, 2019 9:10 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1836 :
Why answer is option 2? Shouldn't it be option 1!? But it's also incorrect though since there's no enclosing brackets.
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1836 :
Why do you think option 1 should be the correct answer and not option 2? Please go through the explanation under option 2. Also, try running the code.
If you like our products and services, please help us by posting your review here.
-
- Posts: 32
- Joined: Fri Oct 16, 2015 4:33 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1836 :
Hi.
It is very interesting for me, why output is
not
?
It is very interesting for me, why output is
Code: Select all
[C# C#]
[OCAJP Java, OCPJP Java, OCEJPA Java]
Code: Select all
[OCAJP Java, OCPJP Java, OCEJPA Java]
[C# C#]
-
- Site Admin
- Posts: 10043
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1836 :
That is as per the iteration order of the Map implementation returned by the collector.
If you like our products and services, please help us by posting your review here.
-
- Posts: 29
- Joined: Sun Feb 07, 2021 6:30 pm
- Contact:
Who is online
Users browsing this forum: gadsgadsx and 22 guests