0

Please explain why!

Java array

29th Nov 2019, 6:03 PM
Ilja Veselov
Ilja Veselov - avatar
5 Respuestas
0
Why it prints 1....not 2
29th Nov 2019, 6:05 PM
Ilja Veselov
Ilja Veselov - avatar
0
What means by value?
29th Nov 2019, 6:21 PM
Ilja Veselov
Ilja Veselov - avatar
- 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; } }
29th Nov 2019, 6:05 PM
Ilja Veselov
Ilja Veselov - avatar