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

题目内容 (请给出正确答案)
单选题
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.


参考答案

参考解析
解析: 暂无解析
更多 “单选题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.” 相关考题
考题 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 CommanderB.java com.sim.sjcp.CommanderC.java com/sun/sjcp/CommanderD.java-cpcom.sun.sjcp CommanderE.java-cpcom/sun/sjcp Commander

考题 Given:Which command-line invocations will compile?() A.javac Mule.javaB.javac -source 1.3 Mule.javaC.javac -source 1.4 Mule.javaD.javac -source 1.5 Mule.java

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

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

考题 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 directoryB.java com.company.application.MainClass if run from the /apps directoryC.java -classpath /apps com.company.application.MainClass if run from any directoryD.java -classpath . MainClass if run from the /apps/com/company/application directoryE.java -classpath /apps/com/company/application:. MainClass if run from the /apps directoryF.java com.company.application.MainClass if run from the /apps/com/company/application directory

考题 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.javaB.add import animals.fish.*; at line 2 in GrizzlyBear.javaC.add import animals.fish.Salmon.*; at line 2 in GrizzlyBear.javaD.add import animals.mammals.GrizzlyBear.*; at line 2 in Salmon.java

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

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

考题 Which of the following command line utilities allows a technician to create a new directory?() A.RDB.CDC.DIRD.MD

考题 If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?()   public class SmallProg {   public static void main(String args[])  { System.out.println("Good luck!"); }  }  A、java SmallProgB、avac SmallProgC、javac SmallProg.javaD、java SmallProg main

考题 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、editB、systeminfoC、gpedit.mscD、dxdiag

考题 Which of the following command line utilities allows a technician to create a new directory?()A、RDB、CDC、DIRD、MD

考题 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 CommanderB、java com.sim.sjcp.CommanderC、java com/sun/sjcp/CommanderD、java-cpcom.sun.sjcp CommanderE、java-cpcom/sun/sjcp Commander

考题 Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is 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 CommanderB、 java com. sim. sjcp.CommanderC、 java com/sun/sjcp/CommanderD、 java -cp com.sun.sjcp CommanderE、 java -cp com/sun/sjcp Commander

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

考题 What is the correct command to display the current working directory?()A、echo $PWDB、echo $pwdC、echo $CWDD、echo $cwd

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

考题 单选题Your company has a single Active Directory directory service forest with three domains. You plan to modify the Active Directory schema. You need to identify the schema master for the forest.  What should you do?()A  Run the regsvr32 schmmgmt.dll command. Use the Active Directory Domains and Trusts snap-in. B  Run the regsvr32 schmmgmt.dll command. Use the Active Directory Users and Computers snap-in. C  Use the Dsget command-line tool.D  Use the Dsquery command-line tool.

考题 单选题What is the correct command to display the current working directory?()A echo $PWDB echo $pwdC echo $CWDD echo $cwd

考题 单选题Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is 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 CommanderB  java com. sim. sjcp.CommanderC  java com/sun/sjcp/CommanderD  java -cp com.sun.sjcp CommanderE  java -cp com/sun/sjcp Commander

考题 单选题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 CommanderB java com.sim.sjcp.CommanderC java com/sun/sjcp/CommanderD java-cpcom.sun.sjcp CommanderE java-cpcom/sun/sjcp Commander

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

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

考题 单选题Given that the current directory is empty, and that the user has read and write privileges to the current directory, 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.

考题 单选题Given: Which command-line invocations will compile?()A javac Mule.javaB javac -source 1.3 Mule.javaC javac -source 1.4 Mule.javaD javac -source 1.5 Mule.java

考题 单选题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 editB systeminfoC gpedit.mscD dxdiag

考题 单选题You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do?()A Use the Publish Web tool.B Use the Copy Web tool.C Use the command line to XCOPY the files.D Create a Web Setup project.

考题 单选题Which of the following command line utilities allows a technician to create a new directory?()A RDB CDC DIRD MD