exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 101 discussion

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

Given the code fragment:



What change on line 1 will make this code compile?

  • A. Add catch(M | L e)
  • B. Add catch(L e)
  • C. Add catch(N | L | M e)
  • D. Add catch(L | N e)
  • E. Add catch(L | M | N e)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
ASPushkin
7 months, 3 weeks ago
Selected Answer: B
answer : BD Exception classes specified inmulticatch statement cannot be subclasses. The order of the exception classes does not affect its execution. A,C,E - not correct - subclasses
upvoted 1 times
...
d7bb0b2
1 year ago
B is correct, is just a change needs to compile, D=> is also correct but the answer that are nor releated excepcion but, with B opcion can capture All expcionts
upvoted 1 times
...
dilleman
1 year, 4 months ago
B and D will compile (tested).
upvoted 1 times
...
[Removed]
1 year, 5 months ago
B is the most correct one. But D will also compile
upvoted 1 times
...
Stavok
1 year, 6 months ago
Selected Answer: B
B is correct 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