QUESTION 31
Exhibit:
What is the output of the program shown in the exhibit?
A. 300.100.100.100.100
B. 300.300.100.100.100
C. 300.300.300.100.100
D. 300.300.300.300.100
Answer: ( B )
参考大纲:Java语言基础 — 对象的存储
QUESTION 32
A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar.
Which three, taken independently, will allow the developer to use the Paper class
while compiling the Book class? (choose three)
A. The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar
B. The JAR file is located at $/JAVA_HOME/jre/lib/ext/myLib.jar.
C. The JAR file is located at /foo/myLib.jar and a classpath environment variable is set
that includes /foo/myLib.jar/Paper,Class.
D. The JAR file is located at /foo/myLib.jar and a classpath environment variable is set
that includes /foo/myLib.jar.
E. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac
-cp /foo/myLib.jar/Paper Book java.
F. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -d
/foo/myLib.jar Book java.
G. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -classpath /foo/myLib.jar Book.java
Answer: ( B, D, G )
Javac -d 指定编译后的文件存放的位置
Javac –cp 指定编译时需要用到的类文件位置
参考大纲:Java语言基础 — Classpath设定
QUESTION 33
Given the exhibit:
Which statement is true about the object referenced by snoog, smooch and booch
immediately after line 23 executes?
A. None of these objects are eligible for garbage collection
B. Only the object referenced by booch is eligible for garbage collection
C. Only the object referenced by snoog is eligible for garbage colletion
D. Only the object referenced by smooch is eligible for garbage collection
E. The objects referenced by smooch and booch are eligible for garbage collection
Answer: ( E )
孤岛参照法,所以三个对象都被回收。
参考大纲:垃圾回收机制
QUESTION 34
Given the exhibit:
and the command line invocation
java Certkiller5 a b c
what is the result?
A. a b
B. b c
C. a b c
D. Compilation fails
E. An exception is thrown at runtime
Answer: ( B )
数组下表从0开始
参考大纲:Java语言基础
QUESTION 35
Given the exhibit:
What is the result?
A. r, t, t
B. r, e, o,
C. Compilation fails
D. An exception is thrown at runtime
Answer: ( C )
第13行错误,check不是boolean类型
参考大纲:流程控制
分享到:
相关推荐
scjp题库scjp题库scjp题库scjp题库scjp题库scjp题库scjp题库scjp题库scjp题库scjp题库
scjp题库scjp题库scjp题库scjp题库scjp题库scjp题库 java题库java题库java题库java题库java题库java题库
sun公司scjp认证题库 短小精悍,覆盖面强,摒弃题海,专注重要的知识点
最新题库,含200多道真题,做完这个题库的题,过scjp基本没问题
scjp题库(收集了CSDN上大部分题库,近1000道SCJP试题 看看大小就知道了,.jar文件直接双击打开
java scjp认证考试题库 都有答案 慢慢我会把注释也加上的
SCJP轻松过 SCJP学习指南 SCJP试题 scjp题库
背下来就好了,哈哈SCJP题库,有了它必过SCJP题库,有了它必过SCJP题库,有了它必过SCJP题库,有了它必过
SCJP最新题库,正式考试时很多题都是原题,不是原题的很多题也类似,如果你搞懂了这里的所有题,你肯定能过,我考了95%
scjp
当时参加scjp考前培训时,老师给我们的题库。考试时的题目上面基本都有,做一遍考试过绝对没问题。
内含多套试题、scjp测试模拟器等 内含多套试题、scjp测试模拟器等
java题库+scjp模拟题。希望对你有帮助
通过SCJP的捷径~我考了70分!想要考或者准备考SCJP的朋友来看看吧!有答案!
2010年SCJP标准题库-jdk1.5
这是最新的SCJP考试题库,有答案,把这过一遍,考试肯定过!
ocjp认证。适合有一定java基础的人看。里面的题比较偏重底层
2013 年 最新SCJP 考试题库。全英文题目