Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started