exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 36 discussion

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

Given:

What is the result?

  • A. The compilation fails.
  • B. [0). D, | 1). i, | 2). a]
  • C. [). o, | 1). a, | 2).]
  • D. [0). o, | 1). i, | 2). r]
  • E. ArrayIndexOutOfBounds Exception is thrown at runtime.
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
Bugmenot240411
3 weeks ago
Selected Answer: B
i did run the code and it's B for this String[] furnitures = ("Door","Window","Chair"]; it was a mistake they mean String[] furnitures = {"Door","Window","Chair"};
upvoted 1 times
...
Stavok
1 year ago
Selected Answer: A
Code does not Compile due to the missing closing bracket which has been replaces by the square bracket...String[] furnitures = ("Door","Window","Chair"]; A is the Correct answer
upvoted 1 times
...
KiraguJohn
1 year, 1 month ago
Won't compile due to the brackets..... String[] furnitures = ("Door", "Window", "Chair"];
upvoted 2 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