equals ==
public class DoubleEq {
public static void main(String[] args) {
// TODO Auto-generated method stub
Double d1 = 5d;
Double d2 = new Double(5);
// true
// false
// true
System.out.println(d1.equals(d2));
System.out.println(d1 == d2);
System.out.println(d1.doubleValue() == d2.doubleValue());
}
}