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);
displayValue(int x);
b. int x = 7;
displayValue(x);
c. int x = 7;
d. int x = 7;
displayValue(x)
b. int x = 7;
displayValue(x);
You might also like to view...
Which digital broadcast system was adopted by the United States as the standard?
a. Digital Video Broadcast-Terrestrial system. b. Advanced Television Systems Committee. c. Digital Video Broadcast-Satellite system. d. Digital Video Broadcast-Committee.
If the controlling expression in the switch statement is not equal to any of the case labels and there is no default case, __________ .
a) an error occurs b) an infinite loop occurs c) the program continues execution with the next statement after the switch d) the first case’s statements are executed