What is the output of this program?
class Point {
int x;
Point(int x) {
this.x = x;
}
}
public class Test {
public static void main(String[] args) {
Point p = new Point(1);
modifyPoint(p);
System.out.println(p.x);
}
static void modifyPoint(Point point) {
point.x = 5;
}
}