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 memoryaddresses of objectA and objectB. True False Question 2 2 pts IfobjectA.equals(objectB) is true then objectA hashCode() == objectB.hashCode() must also be true.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!