Question 20
Answer saved
Flag
question
What is the output of the following code snippet?
public class Main {
public static void main(String[] args) {
int a = 5;
changeValue(a);
System.out.println(a);
}
public static void changeValue(int a) {
a = 10;
}
}
A. 5
B. 10
OC. Compilation error
O D. Runtime error
Clear my choice