Collections and Generics
© examsiri.com
Question : 6 of 53
Marks:
+1,
-0
Given:
Which statement is true?
1. public class Person {
2.   private String name;
3.   public Person(String name) { this.name = name; }
4.   public boolean equals(Person p) {
5.    return p.name.equals(this.name);
6.   }
7. }Which statement is true?
Go to Question: