单选题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: 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
参考解析
解析:
暂无解析
相关考题:
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?()AIf the compile is successful, Utils.class is added to the source directory.BThe compiler returns an invalid flag error.CIf the compile is successful, Utils.class is added to the classes directory.DIf the compile is successful, Utils.class is added to the bigProject directory.
单选题假设在目录myprj/src/school中有Java源文件Student.java,如果希望该文件编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令?()Acd myprj/src javac –d ../classes school/Student.javaBcd myprj/src javac ../classes school/*.javaCcd myprj javac –d ../classes school/*.javaDcd 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.