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
Q17: Which of the following would be a
Q18: This type of method performs a task
Q19: A special variable that holds a value
Q21: Local variables:
A) are hidden from other methods
B)
Q21: In a @return tag statement the description
Q22: Breaking a program down into small manageable
Q23: This type of method performs a task
Q25: Which of the following values can be
Q36: The lifetime of a method's local variable
Q38: Values that are sent into a method
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents