Solved

Assume the Class BankAccount Has Been Created,and the Following Statement

Question 24

Multiple Choice

Assume the class BankAccount has been created,and the following statement correctly creates an instance of the class: BankAccount account = new BankAccount(5000.0) ;
What is true about the following statement?
System.out.println(account) ;


A) The method will display unreadable binary data on the screen.
B) A compiler error will occur.
C) The account object's toString method will be implicitly called.
D) A runtime error will occur.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions