Java认证
Java认证模拟试题(3)
日期:2013-10-31 14:24
question11)
whatwillbetheresultofattemptingtocompileandrunthefollowingcode?
abstractclassminebase{abstractvoidamethod();staticinti;}publicclassmineextendsminebase{publicstaticvoidmain(stringargv[]){int[]ar=newint[5];for(i=0;iar.length;i++)system.out.println(ar[i]);}}
1)asequenceof50swillbeprinted
2)error:arisusedbeforeitisinitialized
3)errorminemustbedeclaredabstract
4)indexoutofboundeserror
question12)
whatwillbeprintedoutifyouattempttocompileandrunthefollowingcode?
inti=1;switch(i){c

1/3 下一页 上一页 首页 尾页

Java认证


返回 刷新 WAP首页 网页版 登录
05/07 14:58