单选题假设在目录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目录中
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)
下列Java命令中,哪一个可以编译HelloWorld.java文件? A、javaHelloWorldB、javaHelloWorld.javaC、javacHelloWorldD、javacHelloWorld.java
在下面哪个web应用目录中可以放置所需要的class文件?() A、 /WEB-INF/libB、 /META-INF/libC、 /classes 放置已经编译的类文件D、 /WEB-INF/classes
假设在目录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不是内部或外部命令的错误”,如何办()A、用setclasspath命令设置java类查找路径B、下载浏览器的java虚拟机并安装C、执行命令应到java源程序文件所在目录进行操作D、用path命令将javac.exe文件所在路径放到dos的搜索路径中
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.
单选题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