Analyze the following code:

```
class Test {
public static void main(String[] args) {
System.out.println(xmethod(5));
}

public static int xmethod(int n, long t) {
System.out.println("int");
return n;
}

public static long xmethod(long n) {
System.out.println("long");
return n;
}
}
```
a. The program displays int followed by 5.
b. The program displays 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.

b. The program displays long followed by 5.

Computer Science & Information Technology

You might also like to view...

A _________ can be configured to house a separate website located at the same domain.

a. TLD b. subdomain c. minidomain D. TCP

Computer Science & Information Technology

Whether they are text or graphics, ____ provide the fundamental tools for navigating Web pages or causing some other action to happen.

A. tags B. cookies C. ActiveX controls D. links

Computer Science & Information Technology