Java考试格林练习试题
question 6)
which of the following are keywords or reserved words in java?
1) if
2) then
3) goto
4) while
5) case
question 7)
which of the following are legal identifiers
1) 2variable
2) variable2
3) _whatavariable
4) _3_
5) $anothervar
6) #myvar
question 8)
what will happen when you compile and run the following code?
public class myclass{ static int i; public static void main(string argv[]){ system.out.println(i); }}
1) error variable i may not have been initialized
2) null
3) 1
4 ...


雷达卡




京公网安备 11010802022788号







