exam questions

Exam 1z0-809 All Questions

View all questions & answers for the 1z0-809 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
shivkumarx
2 months, 3 weeks 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
5 months, 1 week 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
9 months, 3 weeks ago
Selected Answer: D
forEach((src, res) -> ...) -> D is correct
upvoted 1 times
...
WilsonKKerll
2 years, 3 months ago
Answer is B if .forEach((src, res) -> System.out.println(src));
upvoted 1 times
...
Abdullah_Rahahleah
3 years, 6 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago