exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 164 discussion

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

Given:



What is the result?

  • A. The program prints nothing.
  • B. The program prints: 12 and the RuntimeException is thrown.
  • C. The program prints: 123 and the RuntimeException is thrown.
  • D. The program prints 1234 and a java.lang.IllegalStateException is thrown.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
bf8f3be
2 weeks, 3 days ago
Selected Answer: A
Necesita un operacion terminal, el peek no se ejecuta hasta que se invoque una operacion terminal
upvoted 1 times
...
Omnisumem
3 months ago
Selected Answer: A
Tested: A.
upvoted 1 times
...
dilleman
3 months, 2 weeks ago
A is correct. If we add a terminal operation in the end the program will print C: 123 and then throw the exception.
upvoted 1 times
...
[Removed]
4 months, 2 weeks ago
Selected Answer: A
There's no terminal operation so the Stream is not executed.
upvoted 1 times
...
Stavok
5 months, 3 weeks ago
A is correct TESTED
upvoted 1 times
...
KiraguJohn
6 months, 1 week ago
A. The program prints nothing. Tested
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