Multiple Choice
Given the following method header, which of the method calls would be an error?
Public void displayValues(int x, int y)
A) displayValue(a,b) ; // where a is a short 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:

Verified
Correct Answer:
Verified
Q7: No statement outside the method in which
Q8: Values that are sent into a method
Q30: Only constants and variables may be passed
Q35: In the following code, System.out.println(num) is an
Q46: A parameter variable's scope is:<br>A) the method
Q49: What will be the result of the
Q50: When a method tests an argument and
Q52: Which of the following is NOT a
Q53: Which of the following is NOT a
Q56: Which of the following is included in