欢迎来到建筑考试题库网 建筑考试题库官网
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

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 Commander
    B.java com.sim.sjcp.Commander
    C.java com/sun/sjcp/Commander
    D.java-cpcom.sun.sjcp Commander
    E.java-cpcom/sun/sjcp Commander

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题