Analyze the following code:
```
public class Test {
public static void main(String[] args) {
System.out.println(xMethod(5, 500L));
}
public static int xMethod(int n, long l) {
System.out.println("int, long");
return n;
}
public static long xMethod(long n, long l) {
System.out.println("long, long");
return n;
}
}
```
a. The program displays int, long followed by 5.
b. The program displays long, long followed by 5.
c. The program runs fine but displays things other than 5.
d. The program does not compile because the compiler cannot distinguish which xmethod to invoke.
a. The program displays int, long followed by 5.
You might also like to view...
In order to make a window the active window, you use the ____ method of the Window object.
A. open() B. alert() C. focus() D. active()
When using Web page development tools, a ____ view is always available.
A. tag B. frame C. frameset D. table
A comment line in the Code windows is indented and appears in the color ___.
A. red B. green C. blue D. black
Which of the following is a valid declaration for a two-dimensional array?
a)``` int[][] matrix; ``` b)``` int[2] matrix; ``` c)``` int[]** matrix; ``` d)``` int[] matrix; ``` e) none of these are correct