Multiple Choice
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
Correct Answer:
Verified
Q41: Suppose you wish to process an array
Q80: Consider the following line of code:<br>Int[] somearray
Q81: Which statement is true about the code
Q83: Which one of the following is the
Q84: What is the output of the following
Q86: Consider the following code snippet:<br>Int[][] numarray =<br>{<br>{
Q87: Assume the following variable has been declared
Q88: Which one of the following statements is
Q90: Consider the following code snippet: ArrayList<Integer> arrList
Q102: Java 7 introduced enhanced syntax for declaring