Answer:- Major property of a good hash code is that objects which are equal should return the same hash code .
Explanation: Hash codes is a numeric value which is used for identify a object while a equality testing .Hash code can occupy the value of any length and then returns a fixed length value. The value of hash codes are variable.
If two objects are equal then by the method of equal(object) if the hashcode() function is called on both the objects , they produce the same value.
Answer:
D
Explanation:
Not much of a tech person, but protocol then firewall seems the most reasonable.
Answer:
sendObject(John_Doe)
Explanation:
To invoke a method, simply call the name of the method, followed by it's arguments in parenthesis. i.e methodname(argument).
In this case, the name of the method is sendObject and it's argument is a Customer object stored in or referenced by a variable John_Doe.
The above is true since the method is defined in the same class that calls it. Otherwise, it is not valid.