0
Please explain why!
Java array
5 Respuestas
0
Why it prints 1....not 2
0
What means by value?
- 1
What happens when the following program is compiled and run. Select the one correct answer.
public class example
{
int i[] = {0};
public static void main(String args[])
{
int i[] = {1};
change_i(i);
System.out.println(i[0]);
}
public static void change_i(int i[])
{
int j[] = {2};
i = j;
}
}