Multiple Choice
What is the output of the following code snippet?
Public static void main(String[] args)
{
String[] arr = { "aaa", "bbb", "ccc" };
Mystery(arr) ;
System.out.println(arr[0] + " " + arr.length) ;
}
Public static void mystery(String[] arr)
{
Arr = new String[5];
Arr[0] = "ddd";
}
A) ddd 5
B) ddd 3
C) aaa 5
D) aaa 3
Correct Answer:

Verified
Correct Answer:
Verified
Q10: Which one of the following statements is
Q49: In a partially filled array, the number
Q50: What is the value of myArray[1][2] after
Q67: Consider the following code snippet in Java
Q67: What is true about the following code
Q68: Which one of the following is the
Q69: Consider the following line of code for
Q71: Consider the following 2-dimensional array. Select the
Q72: Which statements are true about the buffer
Q77: Your program needs to store a sequence