Solved

Assume That the Following Method Header Is for a Method

Question 21

Multiple Choice

Assume that the following method header is for a method in class A. public void displayValue(int value)
Assume that the following code segments appear in another method, also in class A. Which contains a legal call to the displayValue method?


A) int x = 7; void displayValue(x) ;
B) int x = 7; displayValue(x) ;
C) int x = 7; displayValue(int x) ;
D) int x = 7; displayValue(x)

Correct Answer:

verifed

Verified

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

Related Questions