Consider the following class definition.

public class Time
{
private int hours;
private int minutes;
public Time(int h, int m)
{
hours = h;
minutes = m;
}
public boolean equals(Object other)
{
if (other == null)
{
return false;
}
Time t = (Time) other;
return (hours * 60 + minutes
== t.hours * 60 + t.minutes);
}
}
The following code segment appears in a class other than Time.

Time t1 = new Time(1, 10);
Time t2 = new Time(0, 70);
Which of the following statements will print true ?

System.out.println(t1 == t2);
System.out.println(t1.equals(t2));
System.out.println(equals(t1, t2);

A. I only
B. II only
C. III only
D. I and II
E. I and III