Question: Question 1 2 pts The statement objectA object compares the memory addresses of objectA and objectB. True False Question 2 2 pts If objectA.equals(objectB) is



Question 1 2 pts The statement objectA object compares the memory addresses of objectA and objectB. True False Question 2 2 pts If objectA.equals(objectB) is true then objectA hashCode() == objectB.hashCode() must also be true. True False Question 3 2 pts Calling objectA.equals(null) will cause an exception to be thrown (assume equals is overridden). True False Question 4 2 pts If objectA hashCode() == objectB.hashCode() then objectA.equals(objectB) must return true. True False Question 5 2 pts The purpose of a hashCode() method is to return the memory address of an object. True False Question 6 2 pts The contents of an array declared final cannot be changed. Example: final int[] myArray = {1, 1, 2, 3, 5, 8, 13}; True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
