Solved

Consider the Following Code Snippet

Question 28

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions