Collections and Generics

© examsiri.com
Question : 29 of 53
 
Marks: +1, -0
Given:
1. public class Person {
2.   private name;
3.   public Person(String name) {
4.    this.name = name;
5.   }
6.   public int hashCode() {
7.    return 420;
8.   }
9. }

Which statement is true?
Go to Question: