|
Q10
|
public class Test10{
public void method(int arr[]){
arr[0] =
10;
}
public static void main(String[]
args){
int[] small
= {1,2,3};
Test10 t=
new Test10();
t.method(small);
System.out.println(small[0]);
}
}
what will be the output?
|
|
A1
|
0
|
|
A2
|
1
|
|
A3
|
0
|
|
A4
|
none of the above
|
|
1
|
A2)int a[] = new int[10];
|
|
2
|
A1)new int[] = {1,2,3,4};
|
|
3
|
A1)14:0
|
|
4
|
A1)13:0
|
|
5
|
A1)null
|
|
6
|
A3 : String[][] a3 = new String[20][20];
A4 : String a4[][] = new String[20][20];
A5 : String[] a5[] = new String[20][20];
|
|
7
|
A2 : String players[] = {"","","",""};
|
|
8
|
c) '\u0000'
|
|
9
|
b)new float[]={1,2};
|
|
10
|
10
|