AP Computer Science Amediummcq1 pt

Which describes the object's toString before it is overridden?

A.class name and hash code
B.all field values
C.an empty string
D.the memory address only

Explanation

Core Concept

Object's toString shows class and hash.

Correct Answer

Aclass name and hash code

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 →