Question: Consider the following implementation of a hashCode ( ) method that uses the bitwise exclusive - or ( ^ ) operator. public class Point 2
Consider the following implementation of a hashCode method that uses the bitwise exclusiveor operator.
public class PointD
Double x y;
public int hashCode
return xhashCode yhashCode;
Which of the following statements are true about two instances p and q of a PointD
Question options:
a
if px qy or py qx then phashCode qhashCode
b
if px py then phashCode
c
if px qy and py qx then phashCode qhashCode
d
Both a and b are true
e
Both b and c are true
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
