cd myprj/src javac –d ../classes school/Student.java
cd myprj/src javac ../classes school/*.java
cd myprj javac –d ../classes school/*.java
cd myprj/src/school javac –d ../classes school/Student.java
第1题:
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
第2题:
下列说法正确的有()
A.环境变量可在编译sourcecode时指定
B.在编译程序时,所能指定的环境变量不包括classpath
C.javac一次可同时编译数个Java源文件
D.javac.exe能指定编译结果要置于哪个目录(directory)
第3题:
A、主要应用程序代码位于src/main/java目录中
B、资源文件在src/main/resources目录中
C、src/main/resources/templates目录用于存放静态资源文件
D、测试代码在src/test/java目录中
第4题:
在下面哪个web应用目录中可以放置所需要的class文件?()
第5题:
A、javaHelloWorld
B、javaHelloWorld.java
C、javacHelloWorld
D、javacHelloWorld.java
第6题:
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.
第7题:
JDK中,用( )命令对其源文件进行编译,生成字节码文件。
A.java.exe
B.javac.exe
C.javadoc.exe
D.javap.exe
第8题:
A..class和.class
B..java和.java
C..class和.java
D..java和.class
第9题:
此题为判断题(对,错)。
第10题:
使用JDK开发Java程序时,编译一个源文件使用的命令是()