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

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

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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.


参考答案:C

第2题:

Given that the current directory is empty, and that the user has read and write privileges to the current, and the following:Which statement is true?()

A.Compilation fails.

B.Nothing is added to the file system.

C.Only a new file is created on the file system.

D.Only a new directory is created on the file system.

E.Both a new file and a new directory are created on the file system.


参考答案:B

第3题:

package com.sun.sjcp;public class Commander{public static void main(String[]args){//more code here}}Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains.(current directory).Which command line correctly runs Commander?()

A.java Commander

B.java com.sim.sjcp.Commander

C.java com/sun/sjcp/Commander

D.java-cpcom.sun.sjcp Commander

E.java-cpcom/sun/sjcp Commander


参考答案:B

第4题:

Which of the following command line utilities allows a technician to create a new directory?()

  • A、RD
  • B、CD
  • C、DIR
  • D、MD

正确答案:D

第5题:

Which of the following command line utilities allows a technician to create a new directory?()

A.RD

B.CD

C.DIR

D.MD


参考答案:D

第6题:

Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()

A.java MainClass if run from the /apps directory

B.java com.company.application.MainClass if run from the /apps directory

C.java -classpath /apps com.company.application.MainClass if run from any directory

D.java -classpath . MainClass if run from the /apps/com/company/application directory

E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory

F.java com.company.application.MainClass if run from the /apps/com/company/application directory


参考答案:B, C

第7题:

Given that the current directory is empty, and that the user has read and write permissions, and the following:Which statement is true?()

A.Compilation fails.

B.The file system has a new empty directory named dir.

C.The file system has a new empty directory named newDir.

D.The file system has a directory named dir, containing a file f1.txt.

E.The file system has a directory named newDir, containing a file f1.txt.


参考答案:E

第8题:

Given:Which command-line invocations will compile?()

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


参考答案:B

第9题:

A customer wants to know what version of DirectX the current workstation has installed. Which of the following command line tools would the customer use?()

  • A、edit
  • B、systeminfo
  • C、gpedit.msc
  • D、dxdiag

正确答案:D

第10题:

package com.sun.sjcp; public class Commander{ public static void main(String[]args){ //more code here } } Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains“.“(current directory). Which command line correctly runs Commander?()

  • A、java Commander
  • B、java com.sim.sjcp.Commander
  • C、java com/sun/sjcp/Commander
  • D、java-cpcom.sun.sjcp Commander
  • E、java-cpcom/sun/sjcp Commander

正确答案:B

更多相关问题