A comparison operation
1, comparison of the results are boolean type, that is either true, or is false.
2, the comparison operator "==" can not be mistakenly written as "=."
Example:
public class Test { public static void main(String[] args) { System.out.println(1==2); System.out.println(1!=2); } }
operation result: