多选题
Given:
2. class Chilis {
3. Chilis(String c, int h) {color = c; hotness = h; }
4. String color;
5. int hotness;
6. public boolean equals(Object o) {
7. Chilis c = (Chilis)o;
8. if(this.color == c.color) return true;
9. return false;
10. }
11. public int hashCode() {return (color.length() + hotness);
12. }
If instances of class Chilis are to be used as keys in a Map, which are true?(Choose all that apply.)