Java SE 11 Developer (1Z0-819) Free Practice Exam Questions

36 real Java SE 11 Developer (1Z0-819) exam questions with answers and AI explanations. Oracle certification prep — page 1 of 4.

  1. Question 3: Given the code fragment: List<Integer> list = List.of(11,12,13,12,13); Which statement causes a compile time error?
  2. Question 5: Which two are valid statements? (Choose two.)
  3. Question 14: Given: Path p1 = Paths.get(“/scratch/exam/topsecret/answers”); Path p2 = Paths.get(“/scratch/exam/answers/temp.txt”); Path p3 = Paths.get(“/scratch/answers/top…
  4. Question 27: Which three initialization statements are correct? (Choose three.)
  5. Question 38: Given the code fragment: public void foo(Function<Integer, String> fun) {...} Which two compile? (Choose two.)
  6. Question 43: Which two interfaces are considered to be functional interfaces? (Choose two.)
  7. Question 44: Why would you choose to use a peek operation instead of a forEach operation on a Stream?
  8. Question 50: A company has an existing Java app that includes two Java 8 jar files, sales-8.10.jar and clients-10.2.jar. The jar file, sales-8.10.jar, references packages i…
  9. Question 59: Which declaration of an annotation type is legal?
  10. Question 63: Given the code fragment: Integer i = 11; Which two statements compile? (Choose two.)