giovedì 28 marzo 2013

Q68

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
Risposta B : 12

Nessun commento:

Posta un commento