Givenacorrectlycompiledclasswhosesourcecodeis:packagecom.sun.sjcp;publicclassCommander{publicstaticvoidmain(String[]args){//morecodehere}}Assumethattheclassfileislocatedin/foo/com/sun/sjcp/,thecurrentdirectoryis/foo/,andthattheclasspathcontains.(currentdi

题目

Givenacorrectlycompiledclasswhosesourcecodeis:packagecom.sun.sjcp;publicclassCommander{publicstaticvoidmain(String[]args){//morecodehere}}Assumethattheclassfileislocatedin/foo/com/sun/sjcp/,thecurrentdirectoryis/foo/,andthattheclasspathcontains.(currentdirectory).WhichcommandlinecorrectlyrunsCommander?()

A.javaCommander

B.javacom.sim.sjcp.Commander

C.javacom/sun/sjcp/Commander

D.java-cpcom.sun.sjcpCommander

E.java-cpcom/sun/sjcpCommander


相似考题
更多“Givenacorrectlycompiledclasswhosesourcecodeis:packagecom.sun.sjcp;publicclassCommander{pub ”相关问题
  • 第1题:

    Youhavebeenaskedtocreatethreeusers,PUB1,PUB2andPUB3,forthreenewlyhiredemployeesandtoallocateunlimitedquotaontheirdefaulttablespacePUBLISHER_TBSwithnootherprivileges.Aftercreatingtheusers,whichmethodcanyouuseforgrantingtherequiredprivileges?()

    A.grantCONNECTroletoallofthethreeusers

    B.grantRESOURCEroletoallofthethreeusers

    C.grantbothCONNECTandRESOURCEroletoallofthethreeusers

    D.executeALTERUSER..QUOTAUNLIMITEDONpublisher_tbscommandforallofthethreeusers

    E.createrolewithUNLIMITEDTABLESPACEsystemprivilegeandassigntheroletoallofthethreeusers


    参考答案:D

  • 第2题:

    Cisco路由器上使用团体字pub向管理站pub.abc.edu.an发送自陷消息,正确的snmp配置语句是( )。

    A.

    B.

    C.

    D.

    A.A

    B.B

    C.C

    D.D


    正确答案:A
    A【解析】设置路由器上的snmp代理具有发出通知的功能:在全局模式下的命令格式为“(config)#snmp-serverenabletraps[<通知类型>][<通知选项>]”。设置接收通知的管理站:此命令在全局模式下执行,用于设置网络中的哪台主机作为接收自陷消息的管理站,命令格式为“(config)#snmp-serverhost<主机名或IP地址>[traps|informs][version{1|2c}]<团体名>[udpport<端口号>][<通知类型>]”。故选择A选项。

  • 第3题:

    用rospy创建一个Publisher,话题是'chatter',消息类型为字符串,消息队列长度为10, 正确的语句是:

    A.pub = rospy.Publisher('chatter', String, queue_size=10)

    B.nh = rospy.NodeHandle() pub = nh.Publisher('chatter', String, queue_size=10)

    C.pub = rospy.advertise('chatter', String, queue_size=10)

    D.nh = rospy.NodeHandle() pub = nh.advertise('chatter', String, queue_size=10)


    pub = rospy . Publisher ( ' chatter ' , String , queue_size = 10 )

  • 第4题:

    若想访问北京大学(pku)FTP服务器pub目录下的一个文件index.txt,应该在浏览器地址栏内输入( )。

    A.ftp://ftp.pku.edu.cn/pub/index.txt

    B.http://ftp.pku.edu.cn/pub/index.txt

    C.ftp://http.pku.edu.cn/pub/index.txt

    D.ftp://pku.edu.ca/pub/index.txt


    正确答案:D
    解析:其URL应该写作ftp://pku.edu.cn/pub/index.txt。其中ftp指明要访问的服务2S为 FTP服务器;pku.edu.cn指明要访问的FTP服务器的主机名;pub/index.txt指明要下载的文件名

  • 第5题:

    数据应用属于PUB模块。


    正确