java趣题(一)

  public static void main(String[] args) {
        //
        Integer num1 = 66;
        Long num2 = num1.longValue();
        //
        System.out.println("num1.equals(num2): " + num1.equals(num2));
        System.out.println("num1==num2: " + (num1 == num2));
    }

你可能感兴趣的:(java趣题(一))