Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 1z0-809 topic 1 question 158 discussion

Actual exam question from Oracle's 1z0-809
Question #: 158
Topic #: 1
[All 1z0-809 Questions]

Given:
and the code fragment:

What is the result?

  • A. [Java EE: Helen:Houston] [Java ME: Jessy:Chicago, Java ME: Mark:Chicago]
  • B. Java EE Java ME
  • C. [Java ME: Jessy:Chicago, Java ME: Mark:Chicago] [Java EE: Helen:Houston]
  • D. A compilation error occurs.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
shivkumarx
1 week, 6 days ago
Selected Answer: B
If we ignore the typo in the forEach() method, and the brackets were correct, then the answer is B
upvoted 1 times
...
steefaand
2 months, 3 weeks ago
Selected Answer: D
D is correct like this. If parenthesis are balanced and scr replaced with src then B is answer.
upvoted 1 times
...
duydn
7 months, 1 week ago
Selected Answer: D
forEach((src, res) -> ...) -> D is correct
upvoted 1 times
...
WilsonKKerll
2 years, 1 month ago
Answer is B if .forEach((src, res) -> System.out.println(src));
upvoted 1 times
...
Abdullah_Rahahleah
3 years, 4 months ago
the passed parameter name passed to forEach is wrong, if we change it to src the answer will be B
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...