Test a proposed equality rule

A Java measurement class proposes that two instances are equal whenever their integer readings differ by at most 2 units. Three separate instances have readings 50, 52, and 54 units. No reading changes during comparison. Which statements are correct? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Object Equality Questions: