Solved

Assume That the Measurable Interface Is Defined with a Static

Question 97

Multiple Choice

Assume that the Measurable interface is defined with a static sum method that computes the sum of the Measurable objects passed in as an array, and that BankAccount implements the Measurable interface.Also assume that there is a variable branchAccounts that is an object reference to a populated array of BankAccount objects for a bank branch.Which of the following represents a correct invocation of the sum method to find the total balance of all accounts at the branch?


A) Arrays.sum(branchAccounts)
B) BankAccount.sum(branchAccounts)
C) Measurable.sum(branchAccounts)
D) branchAccounts.sum()

Correct Answer:

verifed

Verified

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

Related Questions