Collections and Generics
© examsiri.com
Question : 15 of 53
Marks:
+1,
-0
Given:
A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap.Which two methods should be overridden to assure that Key works correctly as a key? (Choose two.)
1. public class Key {
2. private long id1;
3. private long id2;
4.
5. /* class Key methods*/
6. }A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap.Which two methods should be overridden to assure that Key works correctly as a key? (Choose two.)
Go to Question: