Which of the following correctly demonstrates the use of equals() from the Object class, and when would you override it?
public class Point {
int x, y;
public Point(int x, int y) { this.x = x; this.y = y; }
}
Point p1 = new Point(2, 3);
Point p2 = new Point(2, 3);
System.out.println(p1.equals(p2));