QUESTION 45자격증/OCJP_ExamA2018. 7. 8. 18:14
Table of Contents
반응형
QUESTION 45
Given the following directory structure:
bigProject
|--source |
|--Utils.java |
|--classes |--
And the following command line invocation:
javac -d classes source/Utils.java
Assume the current directory is bigProject, what is the result?
A. If the compile is successful, Utils.class is added to the source directory.
B. The compiler returns an invalid flag error.
C. If the compile is successful, Utils.class is added to the classes directory.
D. If the compile is successful, Utils.class is added to the bigProject directory.
Solution : C
Utils.java 컴파일을 하게 되면 classes directory에 Utils.java에 해당하는 class가 추가 될 것입니다.
반응형
'자격증 > OCJP_ExamA' 카테고리의 다른 글
QUESTION 47 (0) | 2018.07.08 |
---|---|
QUESTION 46 (0) | 2018.07.08 |
QUESTION 44 (0) | 2018.07.08 |
QUESTION 43 (0) | 2018.07.08 |
QUESTION 42 (0) | 2018.07.08 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상