试题详情
- 单项选择题 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?()
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
- B
关注下方微信公众号,在线模考后查看
热门试题
- 如果java.awt.Container
- 为了实现自定义对象的序列化,该自定义对象
- 一般用()创建InputStream对象
- AnInterface is
- 请写出你知道的排序方法,并使用Java语
- 已知: 那么结果为?()
- public class&e
- What is th
- Which statemen
- 程序: class&ens
- 使用下列哪些关键字可以判定实参的具体类型
- package sun.sc
- Write a
- Click the
- 关于类的构造函数,以下描述中正确的是()
- public class&e
- 从键盘上输入10个整数,并将其放入一个一
- public class&e
- 下列哪些访问修饰符是在子类中可见的?()
- class TestMain