exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 182 discussion

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

Given the code fragment:

Which action enables it to print AB?

  • A. Comment lines 18 to 21.
  • B. Comment line 20.
  • C. Comment line 19.
  • D. Comment line 16.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
UAK94
Highly Voted 2 years, 2 months ago
Answer is C. List<String> lst = Arrays.asList("A","B", "C","D" ); Iterator< String> itr = lst.iterator(); while(itr.hasNext()) { String e=itr.next(); if (e=="C") { break; } else { // continue; System.out.println(e); } } // AB
upvoted 6 times
...
MPignaProTech
Most Recent 2 months, 3 weeks ago
Selected Answer: C
Good answer is C
upvoted 1 times
...
dsms
1 year, 4 months ago
Selected Answer: C
correct answer is: C. Comment line 19
upvoted 2 times
...
Ericausdresden
1 year, 5 months ago
Selected Answer: C
C the rest wouldnt make any sense to me homie
upvoted 2 times
...
sina_
1 year, 5 months ago
Selected Answer: B
if you comment line 20 you wont print anything at all
upvoted 1 times
...
examprepincedo
1 year, 11 months ago
Selected Answer: C
C is correct
upvoted 3 times
...
TOPPSI
2 years ago
Selected Answer: C
The question is wich action prits AB. If you comment out line 19 it will print AB
upvoted 2 times
...
TOPPSI
2 years ago
Correct anwser ist B: line 20 is an unrechable statment, because of the countinue Statment
upvoted 2 times
...
carloswork
2 years, 2 months ago
Selected Answer: C
The correct is, answer C. I'm wrong, The UAK94's source code corresponds to the option C.
upvoted 1 times
...
carloswork
2 years, 2 months ago
Selected Answer: B
Answer is B. The UAK94's source code corresponds to the option B.
upvoted 2 times
carloswork
2 years, 2 months ago
I'm wrong, The UAK94's source code corresponds to the option C.
upvoted 2 times
...
...
iSnover
2 years, 3 months ago
Selected Answer: B
The correct answer is the letter B. Because the ".next" method of an interactor already prints what is in the ArrayList position in question, so it would give an error in the code if we used print.
upvoted 1 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