Giventhefollowingdirectorystructure:Andthefollowingcommandlineinvocation:javac–dclassessource/Utils.javaAssumethecurrentdirectoryisbigProject,whatittheresult?()A.Ifthecompileissuccessful,Utils.classisaddedtothesourcedirectory.B.Thecompilerreturnsaninvalid

题目
Giventhefollowingdirectorystructure:Andthefollowingcommandlineinvocation:javac–dclassessource/Utils.javaAssumethecurrentdirectoryisbigProject,whatittheresult?()

A.Ifthecompileissuccessful,Utils.classisaddedtothesourcedirectory.

B.Thecompilerreturnsaninvalidflagerror.

C.Ifthecompileissuccessful,Utils.classisaddedtotheclassesdirectory.

D.Ifthecompileissuccessful,Utils.classisaddedtothebigProjectdirectory.


相似考题
更多“Giventhefollowingdirectorystructure:Andthefollowingcommandlineinvocation:javac–dclassessource/Utils.javaAssumethecurrentdirectoryisbigProject,whatittheresult?() ”相关问题
  • 第1题:

    is not a programming language.

    A.COBOL

    B.Java

    C.CMM

    D.Basic


    正确答案:C
    解析:CMM不是一个程序语言。

  • 第2题:

    The most common query language is______.

    A.C

    B.Java

    C.perl

    D.SQL


    正确答案:D
    解析:最常用的结构化查询语言是SQL。

  • 第3题:

    编译和解析执行一个Java应用程序应分别采用的命令是_____。

    A.java和javac

    B.javac和java

    C.javap和java

    D.javac和jdb


    Java和go

  • 第4题:

    3  The name of a Java source code file is   ).

    A. .class         B. .java          C.  .exe    D. .obj 


    答案B

    翻译:一个Java源代码文件的名称

    class文件java编译后的文件,它不是源代码,真正的java源代码是.java文件。 java源代码是txt格式的.java文件,用记事本就可以打开。


  • 第5题:

    Windows操作系统上Java编译器程序的文件名是()。

    A.javac.exe

    B.java.exe

    C.javac.class

    D.jar.exe


    javac.exe