1. Long.valueOf(b) 返回的是对象

public static Long valueOf(String s) throws NumberFormatException
{
    return Long.valueOf(parseLong(s, 10));
}

2. Long.parseLong(a) 返回的long基本类型

public static long parseLong(String s) throws NumberFormatException {
        return parseLong(s, 10);
    }

3. 所以判断等于的时候要注意了!

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-08-10
  • 2022-01-28
  • 2021-11-18
  • 2021-08-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-10-16
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案