阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 51-100#99391 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 51-100#99391

年份:104年

科目:OJCP(SCJP)

92. Given a correctly compiled class whose source code is:
 1. package com.sun.sjcp;
 2. public class Commander { 
3. public static void main(String[] args) { 
4. // more code here 
5. } 
6. } 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.sun.sjcp.Commander
(C) java com/sun/sjcp/Commander
(D) java -cp com.sun.sjcp Commander
(E) java -cp com/sun/sjcp Commander
正確答案:登入後查看