网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
关于Java存档文件JAR,下列不正确的说法是()。
A.Java的JAR 文件是 Java 的一种文档格式,就是 ZIP 文件的格式。
B.JAR文件包含和应用程序相关的类文件和辅助资源,包括Java源代码。
C.JAR文件格式允许将多个文件捆绑到单个存档文件中。
D.JAR是处理音频和图像文件以及类文件的唯一格式。
参考答案和解析
JAR 是唯一的跨平台存档格式;JAR 包作为内嵌在Java平台内部处理的标准,能够在各种平台上直接使用;JAR文件 格式同ZIP文件格式一样
更多 “关于Java存档文件JAR,下列不正确的说法是()。A.Java的JAR 文件是 Java 的一种文档格式,就是 ZIP 文件的格式。B.JAR文件包含和应用程序相关的类文件和辅助资源,包括Java源代码。C.JAR文件格式允许将多个文件捆绑到单个存档文件中。D.JAR是处理音频和图像文件以及类文件的唯一格式。” 相关考题
考题
下列( )类属于java.util.jar 包。A.GZIPInputStreamB.ZipInputStreamC.JarInputSreamD.InflaterlnputStream
考题
要实现对Java 代码的数字签名,对于代码的提供者要经过的4个步骤的正确顺序是 ( )。 ①创建JAR 文件 ②创建密钥 ③对JAR 文件进行数字签名 ④输出公钥证书A.①③②④B.①②③④C.②①③④D.①③②④
考题
Aclassgames.cards.PokeriscorrectlydefinedinthejarfilePoker.jar.AuserwantstoexecutethemainmethodofPokeronaUNIXsystemusingthecommand:javagames.cards.PokerWhatallowstheusertodothis?()
A.putPoker.jarindirectory/stuff/java,andsettheCLASSPATHtoinclude/stuff/javaB.putPoker.jarindirectory/stuff/java,andsettheCLASSPATHtoinclude/stuff/java/*.jarC.PutPoker.jarindirectory/stuff/java,andsettheCLASSPATHtoinclude/stuff/java/Poker.jarD.putPoker.jarindirectory/stuff/java/games/cards,andsettheCLASSPATHtoinclude/stuff/javaE.putPoker.jarindirectory/stuff/java/games/cards,andsettheCLASSPATHtoinclude/stuff/java/*.jarF.putPoker.jarindirectory/stuff/java/games/cards,andsettheCLASSPATHtoinclude/stuff/java/Poker.jar
考题
下列说法错误的有()A.能被java.exe成功运行的javaclass文件必须有main()方法B.J2SDK就是JavaAPIC.Appletviewer.exe可利用jar选项运行.jar文件D.能被Appletviewer成功运行的javaclass文件必须有main()方法
考题
java classpath设置问题,跪求高手解答!
.;%JAVA_HOME%/lib/tools.jar;1.最前面那个点是干什么用的?2.tools.jar有哪些重要的类?多谢!
考题
要实现对Java代码的数字签名,对于代码的提供者要经过的4个步骤的正确顺序是 ①创建JAR文件 ②创建密钥 ③对JAR文件惺智┟? ④输出公钥证书A.①③②④B.①②③④C.②①③④D.①③②④
考题
下列关于Applet中的归档文件叙述不正确的是A.使用归档文件的好处是减少HTTP的连接次数,从而大大减少了Applet整体的下载时间B.所有的浏览器都识别相同的归档文件格式和指定归档文件的HTML代码C.归档文件是一种压缩文件,使用它也减少了文件的传输时间D.使用JDK的jar工具创建JAR文件
考题
A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()A、The JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.B、The JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.C、TheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.D、The JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.E、The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.F、The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.
考题
A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()A、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/javaB、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jarC、Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jarD、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/javaE、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jarF、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar
考题
A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Bookclass?()A、The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.B、The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..C、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.D、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.E、The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - cp /foo/myLib.jar/Paper Book.java.F、The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - classpath /foo/myLib.jar Book.java
考题
单选题下列关于Java语言的叙述中,正确的是()A
Java是不区分大小写的B
源文件名必须与public类型的类名相同C
源文件中public类的数目不限D
源文件名其扩展名为.jar
考题
多选题A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()AThe JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.BThe JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.CTheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.DThe JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.EThe JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.FThe JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.
考题
多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.BThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..CThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.DThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.EThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -cp /foo/myLib.jar/Paper Book.java.FThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -d /foo/myLib.jar Book.javaGThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -classpath /foo/myLib.jar Book.java
考题
多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Bookclass?()AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.BThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..CThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class.DThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar.EThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - cp /foo/myLib.jar/Paper Book.java.FThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac - classpath /foo/myLib.jar Book.java
考题
单选题A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:java games.cards. Poker What allows the user to do this?()A
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/javaB
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jarC
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jarD
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java
考题
多选题A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class?()AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jarBThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jarCThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.classDThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jarEThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac –cp /foo/myLib.jar/Paper Book.javaFThe JAR file is located at foo/myLib.jar and the Book class is compiled using javac –classpath /foo/myLib.jar Book.java
考题
单选题A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()A
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/javaB
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jarC
Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jarD
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/javaE
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuffijava/*.jarF
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/Poker.jar
考题
填空题JAVA程序包括源代码(.java文件)、()、由归档工具jar生成的.jar文件、对象状态序列化.ser文件。
热门标签
最新试卷