Java SE 11 Developer Free Practice Exam Questions
12 real Java SE 11 Developer exam questions with answers and AI explanations. Oracle certification prep — page 1 of 2.
- Question 4: Given: public class X { } and public final class Y extends X { } What is the result of compiling these two classes?
- Question 6: Given: jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar Which describes the expected output?
- Question 8: Given the code fragment: Path currentFile = Paths.get(“/scratch/exam/temp.txt”); Path outputFile = Paths get(“/scratch/exam/new.txt”); Path directory = Paths.g…
- Question 14: Which two are successful examples of autoboxing? (Choose two.)
- Question 18: Which interface in the java.util.function package can return a primitive type?
- Question 19: Given: LocalDate d1 = LocalDate.of(1997,2,7); DateTimeFormatter dtf = DateTimeFormatter.ofPattern( /*insert code here*/ ); System.out.println(dtf.format (d1));…
- Question 23: var numbers = List.of(0,1,2,3,4,5,6,7,8,9); You want to calculate the average of numbers. Which two codes will accomplish this? (Choose two.)
- Question 26: Given: String originalPath = “data\\projects\\a-project\\..\\..\\another-project”; Path path = Paths.get(originalPath); System.out.print(path.normalize()); Wha…
- Question 32: Which two statements set the default locale used for formatting numbers, currency, and percentages? (Choose two.)
- Question 34: Which two safely validate inputs? (Choose two.)