网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 认证考试 > Java认证
本月文章推荐
.Java认证考试种类及特点.
.菜鸟入门篇:如何迅速获取Java认证.
.Sun Java IT技术认证问题解答.
.Java理论与实践:垃圾收集简史.
.Java语言入门(2).
.java入门学习指导之最佳方向(下).
.构架Linux环境下Java开发环境(1).
.有效和正确定义hashCode()和equa.
.Test of the Java Skill(3).
.SCJP认证套题解析之六.
.如何进入程序设计的领域.
.通过Java认证 SCJP 考试之精辟总.
.课程介绍(8)SL-425 体系结构及J2.
.Sun认证Java开发员-SCJD认证介绍.
.课程介绍(10)SL-315 Java Server.
.Java程序员认证模拟题及详细分析.
.请保持你对Java的敏感度:了其然,.
.SCJP认证套题解析之一.
.SCJP认证套题解析之十.
.Java:IT认证中最有魅力的开发工具.

SCJP认证套题解析之十一

发表日期:2006-4-7


51、Which is not a method of the class InputStream?
   A. int read(byte[])
   B. void flush()
   C. void close()
   D. int available()
   (b)
   题目:下面哪个不是InputStream类中的方法

   这个题目没有什么好说的,要求熟悉java API中的一些基本类,题目中的InputStream是所有输入流的父类,所有要很熟悉,参看JDK的API文档。方法void flush()是缓冲输出流的基本方法,作用是强制将流缓冲区中的当前内容强制输出。

   52、Which class is not subclass of FilterInputStream?
   A. DataInputStream

   B. BufferedInputStream

   C. PushbackInputStream

   D. FileInputStream

   (d)

   题目:
   哪个不是FilterInputStream的子类。

   此题也是要求熟悉API基础类。Java基础API中的FilterInputStream 的已知子类有:BufferedInputStream, CheckedInputStream, CipherInputStream, DataInputStream, DigestInputStream, InflaterInputStream, LineNumberInputStream, ProgressMonitorInputStream, PushbackInputStream 。

   53、Which classes can be used as the argument of the constructor of the class
FileInputStream?
   A. InputStream

   B. File

   C. FileOutputStream

   D. String

   (bd)

   题目:哪些类可以作为FileInputStream类的构造方法的参数。

   此题同样是要求熟悉基础API,FileInputStream类的构造方法有三个,可接受的参数分别是:File、FileDescriptor、String类的一个对象。

   54、Which classes can be used as the argument of the constructor of the class FilterInputStream?
   A. FilterOutputStream

   B. File

   C. InputStream

   D. RandomAccessFile

   (c)

   题目:哪些类可以作为FilterInputStream类的构造方法的参数。

   FilterInputStream的构造方法只有一个,其参数是一个InputStream对象。

   55、Given the following code fragment:
   1) switch(m)

   2) { case 0: System.out.println(\"case 0\");

   3) case 1: System.out.println(\"case 1\"); break;

   4) case 2:

   5) default: System.out.println(\"default\");

   6) }
   Which value of m would cause \"default\" to be the output?
   A. 0

   B. 1

   C. 2

   D. 3

   (cd)

   题目:给出下面的代码片断:
   …
   m为哪些值将导致\"default\"输出。

   此题考察switch语句的用法,switch的判断的条件必须是一个int型值,也可以是byte、short、char型的值,case中需要注意的是一个case后面一般要接一个break语句才能结束判断,否则将继续执行其它case而不进行任何判断,如果没有任何值符合case列出的判断,则执行default的语句,default是可选的,可以没有,如果没有default而又没有任何值匹配case中列出的值则switch不执行任何语句。
上一篇:Test of the Java Skill(3) 人气:3455
下一篇:SCJP认证套题解析之十 人气:3419
浏览全部Java认证的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐