lunedì 1 aprile 2013

Q106


Which three are valid replacements for foo so that the program will compiled and run?

public class ForTest {

       public static void main(String[] args) {

int[] arrar = {1,2,3};

for ( foo ) {

}
}
}

A.
int i: array

B.
int i = 0; i < 1; i++

C.
;;

D.
; i < 1; i++

E.
; i < 1;

 Risposta: A , B e C

Nessun commento:

Posta un commento