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
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?
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
B
The Answer is B.
not easy as i was known
not as easy as the learning was. but i sure could use some practicals, before writing which could make a lot clearer than it is