niusouti.com

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java-classpath /test

题目

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java-classpath /test:/home/bob/downloads/*.jar games.Chess Bob‘sCLASSPATH is set (at login time) to/usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jarWhat is a possible location for the Chess.class file?()

A./test/Chess.class

B./home/bob/Chess.class

C./test/games/Chess.class

D./usr/lib/games/Chess.class

E./home/bob/games/Chess.class

F.inside jarfile /opt/java/lib/Games.jar (with a correct manifest)

G. inside jarfile /home/bob/downloads/Games.jar (with a correct manifest)


相似考题
更多“A UNIX user named Bob wants to replace his chess program with a new one, but he is not sur ”相关问题
  • 第1题:

    下列Java标识符,错误的是 ( )

    A._sys_varl

    B.$change

    C.User_name

    D.1_file


    正确答案:D
    解析:本题考查Java标识符的命名。属于考试重点内容,应该掌握。Java中标识符的命名规则是:标识符以字母、下划线、美元符作为首字符的字符串序列;标识符是区分大小写的;标识符的字符数没有限制。由此可见Java中标识符不能以数字开头,所以选项D是错误的。

  • 第2题:

    pageContext.setAttribute("user","tom");request.setAttribute("user","bob");显示"bob",则可以使用

    A.{request.getAttribute("user")}

    B.{param.user}

    C.{user}

    D.{requestScope.user}


    正确答案:D

  • 第3题:

    AUNIXusernamedBobwantstoreplacehischessprogramwithanewone,butheisnotsurewheretheoldoneisinstalled.BobiscurrentlyabletorunaJavachessprogramstartingfromhishomedirectory/home/bobusingthecommand:java-classpath/test:/home/bob/downloads/*.jargames.ChessBob’sCLASSPATHisset(atlogintime)to:/usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jarWhatisapossiblelocationfortheChess.classfile?()

    A./test/Chess.class

    B./home/bob/Chess.class

    C./test/games/Chess.class

    D./usr/lib/games/Chess.class

    E./home/bob/games/Chess.class


    参考答案:C

  • 第4题:

    request.setAttribute("user","svse");session.setAttribute("user","bob");使用{user}则显示

    A.null

    B.svse

    C.bob

    D.啥也没有


    正确答案:B

  • 第5题:

    Which command allows you to view interface usage details in real-time?()

    A.user@host> debug interface interface-name

    B.user@host> monitor usage interface-name

    C.user@host> monitor interface interface-name

    D.user@host> traceoptions interface interface-name


    参考答案:C