About Question enthuware.ocpjp.v8.2.1836 :
Moderator: admin
- 
				badbishop
 - 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 6284 times
 
 
- 
				admin
 - Site Admin
 - Posts: 10443
 - 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;
			
			
									
									
						- 
				jolique
 - 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.
 
			
			
									
									
						- 
				admin
 - Site Admin
 - Posts: 10443
 - 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.
			
			
									
									
						- 
				Mushfiq Mammadov
 - 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#]- 
				admin
 - Site Admin
 - Posts: 10443
 - 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.
			
			
									
									
						- 
				jme_chg
 - Posts: 29
 - Joined: Sun Feb 07, 2021 6:30 pm
 - Contact:
 
Who is online
Users browsing this forum: No registered users and 11 guests