QUESTION 54자격증/OCJP_ExamC2018. 7. 26. 17:56
Table of Contents
반응형
QUESTION 54Given:33. Date d = new Date(0);34. String ds = "December 15, 2004";35. // insert code here36. try {37. d = df.parse(ds);38. }39. catch(ParseException e) {40. System.out.println("Unable to parse " + ds);41. }42. // insert code here tooWhat creates the appropriate DateFormat object and adds a day to the Date object?A. 35. DateFormat df = DateFormat.getDateFormat();42. d.setTime( (60 * 60 * 24) + d.getTime());B. 35. DateFormat df = DateFormat.getDateInstance();42. d.setTime( (1000 * 60 * 60 * 24) + d.getTime());C. 35. DateFormat df = DateFormat.getDateFormat();42. d.setLocalTime( (1000*60*60*24) + d.getLocalTime());D. 35. DateFormat df = DateFormat.getDateInstance();42. d.setLocalTime( (60 * 60 * 24) + d.getLocalTime());Solution : B
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 56 (0) | 2018.07.26 |
---|---|
QUESTION 55 (0) | 2018.07.26 |
QUESTION 53 (0) | 2018.07.26 |
QUESTION 52 (0) | 2018.07.26 |
QUESTION 51 (0) | 2018.07.26 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상