9
What is the output of the following program?
public class Main {
int v;
Main(int v) { this.v = v; }
public static void main(String[] args) {
Main a = new Main(5);
Main b = a;
b.v = 9;
System.out.println(a.v);
}
}Easy