Question 1 Incorrect 0/1 pts Which of the following variables are used to compute a hash code using the hashCode() method? local variables O member variables that make an object unique Ostatic variables that make the class unique O all member variables 0/1 pts Question 2 The hashCode() method is important when... ...encrypting data. O...storing object in data structures. O...encoding object to preserve memory. O...implementing any class.
Incorrect 0/1 pts Question 3 Assume the member variable name is used in the hashCode () method. Which of the following statements best represents how the variable will be used when computing the hash code? O result = prime + name.hashCode(); O result += (name == null ? 1 : name.length() * prime); result = result * name.length() + prime; O result = result * prime + (name == null? 0: name.hashCode());
Incorrect Incorrect Question 1 Incorrect 0/1 pts Which of the following variables are used to compute a hash code using the hashCo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am