Java认证模拟试题(2)
日期:2013-10-31 14:23
question6)
whichofthefollowingarekeywordsorreservedwordsinjava?
1)if
2)then
3)goto
4)while
5)case
question7)
whichofthefollowingarelegalidentifiers
1)2variable
2)variable2
3)_whatavariable
4)_3_
5)$anothervar
6)#myvar
question8)
whatwillhappenwhenyoucompileandrunthefollowingcode?
publicclassmyclass{staticinti;publicstaticvoidmain(stringargv[]){system.out.println(i);}}
1)errorvariableimaynothavebeeninitialized
2)null
3)1
4)0
question9)
whatwillhappenifyoutrytocompileandrun
1/2 下一页 上一页 首页 尾页
返回
刷新
WAP首页
网页版
登录
05/19 22:34