QUESTION 9자격증/OCJP_ExamB2018. 7. 9. 15:55
Table of Contents
반응형
QUESTION 9
Given:
enum Example { ONE, TWO, THREE }
Which statement is true?
A. The expressions (ONE == ONE) and ONE.equals(ONE) are both guaranteed to be true.
B. The expression (ONE < TWO) is guaranteed to be true and ONE.compareTo(TWO) is guaranteed to be less than one.
C. The Example values cannot be used in a raw java.util.HashMap; instead, the programmer must use a java.util.EnumMap.
D. The Example values can be used in a java.util.SortedSet, but the set will NOT be sorted because enumerated types do NOT implement java.lang.Comparable.
Solution : A
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 11 (0) | 2018.07.09 |
---|---|
QUESTION 10 (0) | 2018.07.09 |
QUESTION 8 (0) | 2018.07.09 |
QUESTION 7 (0) | 2018.07.09 |
QUESTION 6 (0) | 2018.07.09 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상