单项选择题
Given: What is the result?()
A.A B.B C.C D.D E.E
Given: 11. // insert code here 12. private N min, max; 13. public N getMin() { return min; } 14. public N getMax() { return max; } 15. public void add(N added) { 16. if (min == null || added.doubleValue() < min.doubleValue()) 17. min = added; 18. if (max == null || added.doubleValue() > max.doubleValue()) 19. max = added; 20. } 21. } Which two, inserted at line 11, will allow the code to compile?()
A.A B.B C.C D.D E.E F.F
Given: 12. NumberFormat nf = NumberFormat.getInstance(); 13. nf.setMaximumFractionDigits(4); 14. nf.setMinimumFractionDigits(2); 15. String a = nf.format(3.1415926); 16. String b = nf.format(2); Which two statements are true about the result if the default locale is Locale.US?()
A. The value of b is 2.00. B. The value of a is 3.141. C. The value of a is 3.14. D. The value of b is 2.0000. E. The value of a is 3.1415. F. The value of a is 3.1416. G. The value of b is 2.
Click the Exhibit button. What is the output of the program shown in the exhibit? ()
A. 300-300-100-100-100 B. 300-300-300-100-100 C. 300-300-300-300-100 D. 300-100-100-100-100
微信扫一扫,加关注免费搜题