// Client program to explore references import java.awt.*; 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); Point[] points = new Point[5]; for (int i = 0; i < points.length; i++) { points[i] = new Point(i, i); } Point r = points[2]; } }