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 

题目

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:What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()

A. It is true that j==i.

B. It is false that j==i.

C. An exception is thrown at runtime.

D. Compilation fails because of an error in line 13.


参考答案:D

第2题:

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

第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题:

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

第5题:

Given two files, GrizzlyBear.java and Salmon.java:If both classes are in the correct directories for their packages, and the Mammal class correctly defines the findSalmon() method, which change allows this code to compile?()

A.add import animals.mammals.*; at line 2 in Salmon.java

B.add import animals.fish.*; at line 2 in GrizzlyBear.java

C.add import animals.fish.Salmon.*; at line 2 in GrizzlyBear.java

D.add import animals.mammals.GrizzlyBear.*; at line 2 in Salmon.java


参考答案:B

第6题:

You are managing the APPPROD database as a DBA which is not using the Oracle-managed files. You plan to duplicate this database in the same system with the name DUPDB.You want to create the same directory structure for duplicate database files as of the target database.You executed the following RMAN commands:What are the implications of this command?()

A. It creates database files for the duplicate database under the Oracle base with a different directory for the duplicate database.

B. It overwrites data files of the target database because a different location for data files is not mentioned for the duplicate database.

C. It creates database files for the duplicate database under the same Oracle home as that of the target database with the same directory structure.

D. It creates database files for the duplicate database under the same Oracle home as that of the target but with a different directory for the duplicate database.


参考答案:B

第7题:

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

第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题:

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

第10题:

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

A.RD

B.CD

C.DIR

D.MD


参考答案:D

更多相关问题