阿摩線上測驗 登入

試題詳解

試卷:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 51-100#83056 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 51-100#83056

科目:OJCP(SCJP)

複選題
60 5e4ca48931245.jpg
And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). 
Which two java commands entered at the command line will run MainClass? (Choose two.)
(A) java MainClass if run from the /apps directory
(B) java com.company.application.MainClass if run from the /apps directory
(C) java -classpath /apps com.company.application.MainClass if run from any directory
(D) java-classpath . MainClass if run from the /apps/com/company/application directory
(E) java -classpath /apps/com/company/application:. MainClass if run from the /apps directory 
(AB) java com.company.application.MainClass if run from the /apps/com/company/application directory
正確答案:登入後查看