the former is to judge if the two object references are identical.
the latter is mainly to make out whether they are equal on content for both primitive type and reference type. Sure, the original Object.equal has the same function as "==".
前者比引用 后者一般比内容 Object的原生方法equal功能同“==”