移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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?() 

发布日期:2021-08-29

Given a correctly compiled class whose source code...
A

java Commander

B

java com. sim. sjcp.Commander

C

java com/sun/sjcp/Commander

D

java -cp com.sun.sjcp Commander

E

java -cp com/sun/sjcp Commander

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!