Java认证
Java认证模拟试题(1)
日期:2013-10-31 14:14
question1)
whichofthefollowinglineswillcompilewithoutwarningorerror.
1)floatf=1.3;
2)charc=a;
3)byteb=257;
4)booleanb=null;
5)inti=10;Ajs*+[j5h.u(uvnAjs*+[j5h.u(uvn
question2)
whatwillhappenifyoutrytocompileandrunthefollowingcode
publicclassmyclass{publicstaticvoidmain(stringarguments[]){amethod(arguments);}publicvoidamethod(string[]arguments){system.out.println(arguments);system.out.println(arguments[1]);}}
1)errorcantmakestaticreferencetovoidamethod.
2)errormethodmainnotcorre

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

Java认证


返回 刷新 WAP首页 网页版 登录
04/28 22:00