QUESTION 14자격증/OCJP_ExamD2018. 7. 30. 00:28
Table of Contents
반응형
QUESTION 14Given:12. Date date = new Date();13. df.setLocale(Locale.ITALY);14. String s = df.format(date);The variable df is an object of type DateFormat that has been initialized in line 11. What is the result if this code is run on December 14, 2000?A. The value of s is 14-dic-2000.B. The value of s is Dec 14, 2000.C. An exception is thrown at runtime.D. Compilation fails because of an error in line 13.Solution : D
plus imformation
The method setLocale(Locale) is undefined for the type DateFormat
--> setLocale 은 DateFormat에 정의되어 있지 않다.
반응형
'자격증 > OCJP_ExamD' 카테고리의 다른 글
QUESTION 16 (0) | 2018.07.31 |
---|---|
QUESTION 15 (0) | 2018.07.30 |
QUESTION 13 (0) | 2018.07.30 |
QUESTION 12 (0) | 2018.07.30 |
QUESTION 11 (0) | 2018.07.30 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상