# equals方法 对于equals方法使用不当的是: ## 答案 B ## 选项 ### A ```Java String a = "1"; String b = "2"; System.out.println(a.equals(b)); ``` ### B ```Java int a = 1; int b = 2; System.out.println(a.equals(b)); ``` ### C ```Java Object a = new Object(); Object b = new Object(); System.out.println(a.equals(b)); ``` ### D 以上都是