QUESTION 49자격증/OCJP_ExamB2018. 7. 13. 20:19
Table of Contents
반응형
QUESTION 49Given:1. d is a valid, non-null Date object2. df is a valid, non-null DateFormat object set to the current localeWhat outputs the current locale's country name and the appropriate version of d's date?A. Locale loc = Locale.getLocale();System.out.println(loc.getDisplayCountry() + " " + df.format(d));B. Locale loc = Locale.getDefault();System.out.println(loc.getDisplayCountry() + " " + df.format(d));C. Locale loc = Locale.getLocale();System.out.println(loc.getDisplayCountry() + " " + df.setDateFormat(d));D. Locale loc = Locale.getDefault();System.out.println(loc.getDisplayCountry() + " " + df.setDateFormat(d));Solution : B
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 51 (0) | 2018.07.13 |
---|---|
QUESTION 50 (0) | 2018.07.13 |
QUESTION 48 (0) | 2018.07.13 |
QUESTION 47 (0) | 2018.07.13 |
QUESTION 46 (0) | 2018.07.13 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상