【判断题】【消耗次数:1】
4.Java系统的标准输入对象是System.in,标准输出对象有两个,分别是标准输出System.out和标准错误输出System.err。( )
正确
错误
参考答案:
复制
纠错
相关题目
【单选题】 Java系统标准输出对象System.out使用的输出流是( )。
①  PrintStream
②  PrintWriter
③  DataOutputStream
④  FileReader
【简答题】 程序中可以使用3个标准的流文件,分别是标准输入流、标准输出流和标准[填空1]。
【单选题】 下列哪一个是Java系统的标准输入流对象( )。
①  System.out
②  System.in
③  System.exit
④  System.err
【单选题】 System.out.println(5 + 2);的输出结果应该是( )。
①  52
②  7
③  2
④  5
【判断题】 printf()和 format()方法使用指定格式字符串和参数,将格式化字符串写入到PrintStream类型的输出流(System.out对象)中。
①  正确
②  错误
【判断题】 java.util.Scanner(System.in)可以接收用户从键盘输入的简单数据。
①  正确
②  错误
【单选题】 下列程序从标准输入设备读入一个字符, 然后再输出到显示器, 选择正确的一项填入“//x” 处,完成要求的功能( ) 。 import java.io.*; public class X8_1_4 { public static void main(String[] args) { char ch; try{ //x System.out.println(ch); } catch(IOException e) { e.printStackTrace(); } } }
①  ch = System.in.read();
②  ch = (char)System.in.read();
③  ch = (char)System.in.readln();
④  ch = (int)System.in.read();
【单选题】 getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( ) public void getCustomerInfo() { try { // do something that may cause an Exception } catch (java.io.FileNotFoundException ex){ System.out.print(FileNotFoundException!); } catch (java.io.IOException ex){ System.out.print(IOException!); } catch (java.lang.Exception ex){ System.out.print(Exception!); } }
①  IOException!
②  IOException!Exception!
③  FileNotFoundException!IOException!
④  FileNotFoundException!IOException!Exception!
【单选题】 阅读以下代码: import java.io.*; import java.util.*; public class foo{ public static void main (String[] args){ String s; System.out.println(s= + s); } } 输出结果应该是:( )
①  代码得到编译,并输出“s=”
②  代码得到编译,并输出“s=null”
③  由于String s没有初始化,代码不能编译通过
④  代码得到编译,但捕获到 NullPointException异常
【单选题】 编译运行以下程序后,关于输出结果的说明正确的是 ( ) public class Conditional{ public static void main(String args[ ]){ int x=4; System.out.println(“value is “+ ((x>4) ? 9.9:9)); } }
①  输出结果为:value is 99.9
②  输出结果为:value is 9
③  输出结果为:value is 9.0
④  编译错误
随机题目
【单选题】 文献检索前,确定关键词的方法不包括()
①  研究对象
②  干预措施
③  对照措施
④  研究地点
⑤  研究结局
【单选题】 在万方数据知识服务平台网页,点击()按钮进入高级检索页面
①  学术论文
②  跨库检索
③  检索
④  资源
⑤  服务
【单选题】 CNKI指得是
①  中国知网
②  万方
③  中国生物医学文献数据库
④  考科蓝
⑤  维普
【单选题】 文献检索时,确定关键词的方法不包括
①  研究对象
②  干预措施
③  研究地点
④  对照措施
⑤  研究结局
【单选题】 中国知网不可以检索
①  期刊论文
②  人物档案
③  工具书
④  年检
⑤  专利
【单选题】 下列哪些不是中文文献数据库
①  中国知网
②  万方
③  中国生物医学文献数据库
④  考科蓝
⑤  维普
【单选题】 pubmed指的是
①  中国知网
②  万方
③  美国国家生物技术信息中心提供的、免费的与其他相关数据库接入服务
④  中国生物医学文献数据库
⑤  国家科技图书文献中心
【单选题】 在高级检索中,关键词的组合方式为
①  组间和组内都用and
②  组间用and,组内用or
③  组间和组内都用or
④  组间用or,组内用and
⑤  组间用and,组内用end
【单选题】 中国生物医学文献数据库可以进行()
①  自由词检索
②  主题词检索
③  既可以进行自由词检索,又可以进行主题词检索
④  年份检索
⑤  疾病检索
【单选题】 如果希望精确地检索某个短语,应将其()
①  放置在引号内
②  使用And连接
③  使用or连接
④  使用not连接
⑤  使用括号