Consider the following code snippet:
Int[][] arr =
{
{ 1, 2, 3, 0 },
{ 4, 5, 6, 0 },
{ 0, 0, 0, 0 }
};
Int[][] arr2 = arr;
System.out.println(arr2[2][1] + arr2[1][2]) ;
What is the output of the given code snippet on execution?
A) 5
B) 6
C) 7
D) 9
Correct Answer:
Verified
Q79: Consider the following code snippet:
Int val =
Q80: What is the output of the following
Q81: What is the output of the following
Q82: What is the output of the following
Q83: What is the output of the code
Q85: What is the output of the following
Q86: Which statement is true about the code
Q87: Consider the following code snippet, where the
Q88: Which statement is true about the code
Q89: Assume the following variable has been declared
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents