145k views
4 votes
If you write a toString method to display the contents of an object, object1, for a class, Class1, then the following two statements are equivalent: System.out.println(object1); System.out.println(object1.toString()); Group of answer choices True False

User Denkeni
by
6.2k points

1 Answer

4 votes

Answer:

True

Step-by-step explanation:

The two println methods are equivalent.

User Wormhit
by
6.3k points