调用longValue()方法
Long a = new Long(345); Long b = new Long(345); System.out.println(a.longValue()==b.longValue())