Given the code snippet below, what will be printed?
public static void modifyValue(int num) {
num += 20;
}
public static void main(String[] args) {
int num = 10;
modifyValue(num);
System.out.println(num);
}
Given the code snippet below, what will be printed?
public static void modifyValue(int num) {
num += 20;
}
public static void main(String[] args) {
int num = 10;
modifyValue(num);
System.out.println(num);
}