QUESTION 49자격증/OCJP_ExamC2018. 7. 26. 06:52
Table of Contents
반응형
QUESTION 49Given:NumberFormat nf = NumberFormat.getInstance();nf.setMaximumFractionDigits(4);nf.setMinimumFractionDigits(2);String a = nf.format(3.1415926);String b = nf.format(2);Which two statements are true about the result if the default locale is Locale.US? (Choose two.)A. The value of b is 2.B. The value of a is 3.14.C. The value of b is 2.00.D. The value of a is 3.141.E. The value of a is 3.1415.F. The value of a is 3.1416.G. The value of b is 2.0000.Solution : CF
plus imformation
setMaximumFractionDigits ( a ) --> 소수점 a번째 자리 까지 표현 ( a +1 의 자리에서 반올림 가능 하면 반올림 )
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 51 (0) | 2018.07.26 |
---|---|
QUESTION 50 (0) | 2018.07.26 |
QUESTION 48 (0) | 2018.07.26 |
QUESTION 47 (0) | 2018.07.26 |
QUESTION 46 (0) | 2018.07.26 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상