单选题假设在目录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

单选题
假设在目录myprj/src/school中有Java源文件Student.java,如果希望该文件编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令?()
A

cd myprj/src javac –d ../classes school/Student.java

B

cd myprj/src javac ../classes school/*.java

C

cd myprj javac –d ../classes school/*.java

D

cd myprj/src/school javac –d ../classes school/Student.java


参考解析

解析: 暂无解析

相关考题:

下列关于使用Spring Initializr快速创建的Spring Boot项目结构说法正确的有() A、主要应用程序代码位于src/main/java目录中B、资源文件在src/main/resources目录中C、src/main/resources/templates目录用于存放静态资源文件D、测试代码在src/test/java目录中

java源文件和编译后的文件扩展名分别为_________。 A..class和.classB..java和.javaC..class和.javaD..java和.class

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.

下列说法正确的有()A.环境变量可在编译sourcecode时指定B.在编译程序时,所能指定的环境变量不包括classpathC.javac一次可同时编译数个Java源文件D.javac.exe能指定编译结果要置于哪个目录(directory)

JDK中,用( )命令对其源文件进行编译,生成字节码文件。A.java.exeB.javac.exeC.javadoc.exeD.javap.exe

下列Java命令中,哪一个可以编译HelloWorld.java文件? A、javaHelloWorldB、javaHelloWorld.javaC、javacHelloWorldD、javacHelloWorld.java

如果Java源文件中包含了多个类,那么用编译器javac编译完源文件后将生成多个扩展名为.class的文件。() 此题为判断题(对,错)。

在下面哪个web应用目录中可以放置所需要的class文件?()  A、 /WEB-INF/libB、 /META-INF/libC、 /classes 放置已经编译的类文件D、 /WEB-INF/classes

使用JDK开发Java程序时,编译一个源文件使用的命令是()A、javacB、javaC、appletviewerD、javap

假设在目录myprj/src/school中有Java源文件Student.java,编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令来执行这个类?()  A、cd myprj/src  java ../classes school.StudentB、cd myprj/src/school  java –cp ../classes school.StudentC、cd myprj/src/school  java –cp ../../classes school.StudentD、cd myprj/src  java –cd ../classes school.Student

假设在目录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

用Javac编译Java源文件后得到代码叫字节码。

编译和解析执行一个java应用程序应分别采用的命令是()A、Java和JavacB、Javap和JavaC、Javac和JavaD、Javac和Jdb

如果编译源程序时出现“javac不是内部或外部命令的错误”,如何办()A、用setclasspath命令设置java类查找路径B、下载浏览器的java虚拟机并安装C、执行命令应到java源程序文件所在目录进行操作D、用path命令将javac.exe文件所在路径放到dos的搜索路径中

Java源文件扩展名是()A、.classB、.javaC、.javD、.cla

使用javac命令编译java的源程序时,不需要给出来文件的扩展名java。

在JAVA编程中,以下()命令能够将Java源文件转换为类文件。A、appletviewerB、javaC、javacD、以上所有选项都不正确

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.

判断题用Javac编译Java源文件后得到代码叫字节码。A对B错

单选题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.

单选题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.

单选题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

单选题如果编译源程序时出现“javac不是内部或外部命令的错误”,如何办()A用setclasspath命令设置java类查找路径B下载浏览器的java虚拟机并安装C执行命令应到java源程序文件所在目录进行操作D用path命令将javac.exe文件所在路径放到dos的搜索路径中

单选题假设在目录myprj/src/school中有Java源文件Student.java,编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令来执行这个类?()Acd myprj/src  java ../classes school.StudentBcd myprj/src/school  java –cp ../classes school.StudentCcd myprj/src/school  java –cp ../../classes school.StudentDcd myprj/src  java –cd ../classes school.Student

单选题Report Card shows parents ______.Acertain school rulesBafter—school activitiesCplans for classes and testsDchildren’s school life and work