What is the result?

Given:
<code>
class X {
static void m(int i) {
}
public static void main (String [] args) {
int j = 12;
m (j);
System.out.println(j);
}
</code>
What is the result?

Given:

class X {
static void m(int i) {
}
public static void main (String [] args) {
int j = 12;
m (j);
System.out.println(j);
}

What is the result?

A.
7

B.
12

C.
19

D.
Compilation fails

E.
An exception is thrown at run time



Leave a Reply 2

Your email address will not be published. Required fields are marked *


sully

sully

no description of answer

noname

noname

m (j) is no meaning, so j is 12.