1Z0-853OracleJava Standard Edition 5 Programmer Certified Professional
QUESTION:351Given: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? (Choose two.)A. The value of b is 2. B. The value of a is 3.14. C. The value of a is 3.1415. D. The value of a is 3.141. E. The value of b is 2.0000. F. The value of a is 3.1416. G. The value of b is 2.00. Answer: F, GQUESTION:352DRAG DROPClick the Task button.Answer:
QUESTION:353Given:11. public class Person {12. private String name;13. public Person(String name) {14. this.name = name;15. }16. public boolean equals(Object o) {17. if ( ! o instanceof Person ) return false;18. Person p = (Person) o;19. return p.name.equals(this.name);20. }21. }Which statement is true?
You've reached the end of your free preview.
Want to read all 9 pages?
Fall '16
Mohammad Alizadeh
Madrid Metro,Metropolitana di Napoli,static void alpha