Multiple Choice
Consider the following code snippet:
Int[][] arr =
{
{ 1, 2, 3 },
{ 4, 5, 6 }
};
Int val = arr[0][2] + arr[1][2];
System.out.println(val) ;
What is the output of the given code snippet on execution?
A) 5
B) 7
C) 9
D) 10
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q15: Which one of the following is a
Q23: What is the result of executing this
Q24: Which one of the following is the
Q25: What will be printed by the statements
Q26: Complete the following code snippet with the
Q27: What is the output of the following
Q29: What will be printed by the statements
Q49: What should you check for when calculating
Q71: When an array reading and storing input
Q107: When the order of the elements is