Java SE 8 Programmer II Free Practice Exam Questions

122 real Java SE 8 Programmer II exam questions with answers and AI explanations. Oracle certification prep — page 12 of 13.

  1. Question 191: Which two code blocks correctly initialize a Locale variable? (Choose two.)
  2. Question 192: For which three objects must a vendor provide implementations in its JDBC driver? (Choose three.)
  3. Question 193: Which statement is true about java.time.Duration?
  4. Question 194: You have been asked to create a ResourceBundle which uses a properties file to localize an application. Which code example specifies valid keys of menu1 and me…
  5. Question 196: Which two methods from the java.util.stream.Stream interface perform a reduction operation? (Choose two.)
  6. Question 197: Which code fragment is required to load a JDBC 3.0 driver?
  7. Question 199: Given: class UserException extends Exception { } class AgeOutOfLimitException extends UserException { } and the code fragment: class App { public void doRegist…
  8. Question 203: Given the code fragment: Stream<Path> files = Files.walk(Paths.get(System.getProperty("user.home"))); files.forEach (fName -> { //line n1 try { Path aPath = fN…
  9. Question 204: Given: public class Emp { String fName; String lName; public Emp (String fn, String ln) { fName = fn; lName = ln; } public String getfName() { return fName; }…
  10. Question 205: Given: class Student { String course, name, city; public Student (String name, String course, String city) { this.course = course; this.name = name; this.city…