Solved

Given the Following Method Header, Which of the Method Calls

Question 31

Multiple Choice

Given the following method header, which of the method calls would be an error?
Public void displayValues(double x, int y)


A) displayValue(a,b) ; // where a is a long and b is a byte
B) displayValue(a,b) ; // where a is an int and b is a byte
C) displayValue(a,b) ; // where a is a short and b is a long
D) They would all give an error.

Correct Answer:

verifed

Verified

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

Related Questions