Both equals() method and the == operator are used to compare two objects in Java. == is an operator and equals() is method.
確定! 回上一頁