What is displayed when this code is compiled and executed?
public class Main {
public static void main(String[] args) {
int x = 5;
x = 10;
System.out.println(x);
}
}
What is displayed when this code is compiled and executed?
public class Main {
public static void main(String[] args) {
int x = 5;
x = 10;
System.out.println(x);
}
}