单项选择题
What is the result?()
A.The file will compile without error.
B.Compilation fails. Only line 7 contains an error.
C.Compilation fails. Only line 12 contains an error.
D.Compilation fails. Only line 13 contains an error.
E.Compilation fails. Only lines 7 and 12 contain errors.
F.Compilation fails. Only lines 7 and 13 contain errors.
G.Compilation fails. Lines 7, 12, and 13 contain errors.
相关考题
-
单项选择题
What is the result?()
A.w-f
B.f-p,w-f
C.w-f,b-f
D.f-p,w-f b-f
E.Compilation fails.
F.An exception is thrown at runtime. -
单项选择题
Given classes defined in two different files: What is the result of executing XMLMessage.main?()
A.text
B.Compilation fails.
C.<msg>text</msg>
D.An exception is thrown at runtime. -
多项选择题
AdeveloperiscreatingaclassBook,thatneedstoaccessclassPaper.ThePaperclassisdeployedinaJARnamedmyLib.jar.Whichthree,takenindependently,willallowthedevelopertousethePaperclasswhilecompilingtheBookclass?()
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 –classpath /foo/myLib.jar Book.java
