网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
Given: Which command-line invocations will compile?()
A
javac Mule.java
B
javac -source 1.3 Mule.java
C
javac -source 1.4 Mule.java
D
javac -source 1.5 Mule.java
参考答案
参考解析
解析:
暂无解析
更多 “单选题Given: Which command-line invocations will compile?()A javac Mule.javaB javac -source 1.3 Mule.javaC javac -source 1.4 Mule.javaD javac -source 1.5 Mule.java” 相关考题
考题
publicclassTest{publicstaticvoidmain(String[]args){booleanassert=true;if(assert){System.out.println(”assertistrue”);}}}Given:javac-source1.3Test.javaWhatistheresult?()
A.Compilationfails.B.Compilationsucceedswitherrors.C.Compilationsucceedswithwarnings.D.Compilationsucceedswithoutwarningsorerrors.
考题
Given:Which command-line invocations will compile?()
A.javac Mule.javaB.javac -source 1.3 Mule.javaC.javac -source 1.4 Mule.javaD.javac -source 1.5 Mule.java
考题
Given the following directory structure: bigProject |--source | |--Utils.java | |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result? ()A.If the compile is successful, Utils.class is added to the source directory.B.The compiler returns an invalid flag error.C.If the compile is successful, Utils.class is added to the classes directory.D.If the compile is successful, Utils.class is added to the bigProject directory.
考题
要运行一个名为Test.class的类文件,需要在DOS提示符下输入( )命令。A.javac TestB.javac Test. classC.java TestD.java Test. class
考题
If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?() public class SmallProg { public static void main(String args[]) { System.out.println("Good luck!"); } } A、java SmallProgB、avac SmallProgC、javac SmallProg.javaD、java SmallProg main
考题
public class Test { public static void main(String [] args) { boolean assert = true; if(assert) { System.out.println(”assert is true”); } } } Given: javac -source 1.3 Test.java What is the result?() A、 Compilation fails.B、 Compilation succeeds with errors.C、 Compilation succeeds with warnings.D、 Compilation succeeds without warnings or errors.
考题
假设在目录myprj/src/school中有Java源文件Student.java,如果希望该文件编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令?() A、cd myprj/src javac –d ../classes school/Student.javaB、cd myprj/src javac ../classes school/*.javaC、cd myprj javac –d ../classes school/*.javaD、cd myprj/src/school javac –d ../classes school/Student.java
考题
Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()A、If the compile is successful, Utils.class is added to the source directory.B、The compiler returns an invalid flag error.C、If the compile is successful, Utils.class is added to the classes directory.D、If the compile is successful, Utils.class is added to the bigProject directory.
考题
单选题Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()A
If the compile is successful, Utils.class is added to the source directory.B
The compiler returns an invalid flag error.C
If the compile is successful, Utils.class is added to the classes directory.D
If the compile is successful, Utils.class is added to the bigProject directory.
考题
单选题假设在目录myprj/src/school中有Java源文件Student.java,如果希望该文件编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令?()A
cd myprj/src javac –d ../classes school/Student.javaB
cd myprj/src javac ../classes school/*.javaC
cd myprj javac –d ../classes school/*.javaD
cd myprj/src/school javac –d ../classes school/Student.java
考题
单选题public class Test { public static void main(String [] args) { boolean assert = true; if(assert) { System.out.println(”assert is true”); } } } Given: javac -source 1.3 Test.java What is the result?()A
Compilation fails.B
Compilation succeeds with errors.C
Compilation succeeds with warnings.D
Compilation succeeds without warnings or errors.
热门标签
最新试卷