// Client program to explore references public class References { public static void main(String[] args) { int a = 4; int b = a; a = 7; System.out.println("a = " + a); System.out.println("b = " + b); Point p = new Point(1, 2); Point q = p; p = new Point(3, 4); System.out.println("p = " + p); System.out.println("q = " + q); } // How many point objects exist in this method? [2] // What is the output of this method? [(3, 2)] public static void pollEverywhere() { Point p = new Point(1, 2); Point q = p; Point r = q; q = new Point(4, 5); r.setX(3); System.out.println(p); } }