black

Java认证考试综合练习

登录

单项选择题

下列程序从标准输入设备读入一个字符,然后再输出到显示器,选择正确的一项填入横线处处,完成要求的功能()publicstaticvoidmain(String[]args){charch;try{_____________________________System.out.println(ch);}catch(IOExceptione){e.printStackTrace();}}

A.ch=System.in.read()
B.ch=(char)System.in.read()
C.ch=(char)System.in.readln()
D.ch=(int)System.in.read()

相关考题

单项选择题 增强for:也是JDK5的新特性,是为了简化使用Iterator迭代器遍历集合元素的书写,它用于遍历什么中的元素()

判断题 String类型的数据是基本类型的数据的

判断题 StringBuffer的ensureCapacity(intminimumCapacity)方法可以实现的功能是重新设置字符号串缓冲区的总空间

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064