QUESTION 45자격증/OCJP_ExamC2018. 7. 26. 06:30
Table of Contents
반응형
QUESTION 45Given:1. package com.company.application;2.3. public class MainClass {4. public static void main(String[] args) {5. }6. }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 directoryB. java com.company.application.MainClass if run from the /apps directoryC. java -classpath /apps com.company.application.MainClass if run from any directoryD. java -classpath . MainClass if run from the /apps/com/company/application directoryE. java -classpath /apps/com/company/application:. MainClass if run from the /apps directoryF. java com.company.application.MainClass if run from the /apps/com/company/application directorySolution : BC
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 47 (0) | 2018.07.26 |
---|---|
QUESTION 46 (0) | 2018.07.26 |
QUESTION 44 (0) | 2018.07.26 |
QUESTION 43 (0) | 2018.07.26 |
QUESTION 42 (0) | 2018.07.26 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상