填空题
阅读下列代码 public class Test2{ public static voidmain(Stringargs[]){ System.out.println(5/2);}} 其执行结果是______。
【参考答案】
B
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
生成StringBuffer一个对象后,还可用______方法或ensureCapacity()方法来设定缓存大小。
点击查看答案&解析
填空题
在下列程序的下划线处,填入适当语句使程序能正确执行并输出异常栈信息。public class Throwable Exception{public static voidmain(Stringargs[i]{try{thrownewThrowable( 异常 );}catch(Throwablee){System.out.println( CaughtThrowable );System.out.println( e.getMessage(): +e.getMessage());System.out.println( e.toString(): +e.toString());System.out.println( e.printStackTrace(): );;}}}
点击查看答案&解析
相关试题
当实现Runnable接口时,要实现的方法是__...
设a=8,则表达式a>>>2的值是____...
在Java中,3.14156D表示的是___...
mouseDragged()方法是MouseMotionListene...
在java.io包中有某个类同时实现了Datalnpu...