问题:
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
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?()
● 参考解析
本题暂无解析
相关内容
相关标签