exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 86 discussion

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

Given the code fragment:

What is the result?

  • A. Compilation fails. B. C. D. E.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

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
DarGrin
3 months, 1 week ago
I dont understand, why not 1,3,5,7 and then 1,3,0,0 ? The 2.Array hat 4 values two, or?
upvoted 1 times
...
Sreeni_A
5 months ago
E is correct
upvoted 1 times
...
dsms
5 months ago
answer is: 1357 13
upvoted 1 times
...
Kolodets
8 months, 3 weeks ago
int [2] [4] means eachcolumn has 4 values, so the second row should be 1,3,0,0? LAcking slots would be default initialized
upvoted 2 times
...
Vicky_65
9 months, 2 weeks ago
E is correct
upvoted 1 times
...
carloswork
1 year, 2 months ago
Answer is E. To test: public static void main(String[] args) { int [][] arr = new int [2] [4]; arr[0] = new int [] {1, 3, 5, 7}; arr[1] = new int [] {1, 3}; for(int[] a: arr) { for(int i : a) { System.out.println(i+ " "); } System.out.println(); } }
upvoted 1 times
...
iSnover
1 year, 3 months ago
Correct, because the "int [2] [4]" It says it's a 2-row, 4-column matrix.
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