网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
假设在目录myprj/src/school中有Java源文件Student.java,编译后的类文件出现在目录myprj/classes/school中,应该使用下列哪一个命令来执行这个类?()
A

cd myprj/src  java ../classes school.Student

B

cd myprj/src/school  java –cp ../classes school.Student

C

cd myprj/src/school  java –cp ../../classes school.Student

D

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


参考答案

参考解析
解析: 暂无解析
更多 “单选题假设在目录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” 相关考题
考题 一个文件名为first的Java源文件,编译后得到的类文件为()。 A.First.javaB.First.classC.first.cD.上述均不对

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

考题 以下关于Android应用程序的目录结构描述中,不正确的是() A.src目录是应用程序的主要目录,由Java类文件组成B.assets目录是原始资源目录,该目录中的内容将不会被R类所引用C.res目录是应用资源目录,该目录中的所有资源内容都会被R类所索引D.AndroidManifest.xml文件不是Android项目的配置文件

考题 在下面哪个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

考题 假设已编写好了类Class1:packagemypackage;publicclassClass1{……}它存在Class1.java文件中。现在main方法所在的源程序MainPro.java如下:importmypackage;……假设操作系统中的CLASSPATH环境变量已被设成"c:/java/lib/classes.zip;.;",而main方法所在的源程序MainPro.java存在目录c:/mydir中(当前工作目录为c:/mydir),那么Class1.class文件应存放在那个目录中呢?

考题 若使当前编译的Java文件所引用的类文件不在当前目录下,需要在Java命令后面添加参数()。A、-cpB、-gC、-classpathD、-verbose

考题 在设计Web项目的目录结构时,src目录一般放()文件。A、htmlB、jspC、web.xmlD、Java源文件

考题 下列有关类声明的代码片段,哪一项是正确的?() A、 import java.sql.*; package school; class Student{ }B、 package school; import java.sql.*; class Student{ }C、 package school; class Student{ } import java.sql.*;D、 package school; import java.sql.*;private String name; class Student{ }

考题 JDK工具javadoc的作用是哪项?()    A、生成Java文档B、编译Java源文件C、执行Java类文件D、测试Java代码

考题 JBuilder中包含多种文件,他们被放在不同的目录下,下面4种类型的文件描述中,哪种是错误的()A、编译后的java二进制码放在classes目录下B、java源文件放在scr目录下C、java程序运行时的工作目录就是工程所在目录,工作目录是指java程序运行时默认的当前目录D、编译中产生的obj临时文件和最终产生的可执行文件都放在Debug目录下

考题 You completed your Java procedure for your external Java function activity, and you now want todeploy this to your server. What would you do to deploy the Java procedure?()A、take the Java sources (.java) files and include them in your $APPL_TOPB、take the Java sources (.java) files and include them in your CLASSPATHC、take the Java classes (.class) files and include them in your $APPL_TOPD、take the Java classes (.class) files and include them in your CLASSPATH

考题 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.

考题 单选题若使当前编译的Java文件所引用的类文件不在当前目录下,需要在Java命令后面添加参数()。A -cpB -gC -classpathD -verbose

考题 单选题给定一个Java源程序Test.Java,在命令行中应该使用下面()语句可以编译、运行该程序。A AB BC CD D

考题 单选题下列有关类声明的代码片段,哪一项是正确的?()A  import java.sql.*; package school; class Student{ }B  package school; import java.sql.*; class Student{ }C  package school; class Student{ } import java.sql.*;D  package school; import java.sql.*;private String name; class Student{ }

考题 单选题A The classes that they are taking.B The theatre program at their school.C The woman’s interest in an internship.D The man’s experience in a law firm.

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

考题 单选题JBuilder中包含多种文件,他们被放在不同的目录下,下面4种类型的文件描述中,哪种是错误的()A 编译后的java二进制码放在classes目录下B java源文件放在scr目录下C java程序运行时的工作目录就是工程所在目录,工作目录是指java程序运行时默认的当前目录D 编译中产生的obj临时文件和最终产生的可执行文件都放在Debug目录下

考题 单选题What time can students take part in the hobby classes?A From morning to afternoon.B In their school time.C In their spare time.D On Wednesday evening.

考题 单选题In WebLogic, the development feature to automatically load/refresh the changes of a Java classes  at run time is called().A HotSwapB FastSwapC HotDeployD FastDeployE FastReload

考题 单选题JDK工具javadoc的作用是哪项?()A 生成Java文档B 编译Java源文件C 执行Java类文件D 测试Java代码

考题 单选题You completed your Java procedure for your external Java function activity, and you now want todeploy this to your server. What would you do to deploy the Java procedure?()A take the Java sources (.java) files and include them in your $APPL_TOPB take the Java sources (.java) files and include them in your CLASSPATHC take the Java classes (.class) files and include them in your $APPL_TOPD take the Java classes (.class) files and include them in your CLASSPATH

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

考题 单选题Report Card shows parents ______.A certain school rulesB after—school activitiesC plans for classes and testsD children’s school life and work

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