AP Computer Science Amediummcq1 pt

Which statement is true about the equals method?

A.It is inherited from Object and can be overridden
B.It exists only in String
C.It cannot be overridden
D.It is static

Explanation

Core Concept

Object provides equals by identity.

Correct Answer

AIt is inherited from Object and can be overridden

More Unit 9: Inheritance practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 9: Inheritance Questions →