Free Oracle 1Z0-830 Exam Questions

Become Oracle Certified with updated 1Z0-830 exam questions and correct answers

Page:    1 / 17      
Total 84 Questions | Updated On: Jun 23, 2025
Add To Cart
Question 1

Given: java ExecutorService service = Executors.newFixedThreadPool(2); Runnable task = () -> System.out.println("Task is complete"); service.submit(task); service.shutdown(); service.submit(task); What happens when executing the given code fragment? 


Answer: A
Question 2

Given: java 

String bread = optionalName.orElse("Baguette"); System.out.print("bread:" + bread); String dish = optionalName.orElseGet(() -> "Frog legs"); System.out.print(", dish:" + dish); try { String cheese = optionalName.orElseThrow(() -> new Exception()); System.out.println(", cheese:" + cheese); } catch (Exception exc) { System.out.println(", no cheese."); } What is printed?


Answer: B
Question 3

Which StringBuilder variable fails to compile? java public class StringBuilderInstantiations { public static void main(String[] args) { var stringBuilder1 = new StringBuilder(); var stringBuilder2 = new StringBuilder(10); var stringBuilder3 = new StringBuilder("Java"); var stringBuilder4 = new StringBuilder(new char[]{'J', 'a', 'v', 'a'}); } } 


Answer: B
Question 4

Which three of the following are correct about the Java module system? 


Answer: B,C,F
Question 5

Which methods compile? 


Answer: A,B
Page:    1 / 17      
Total 84 Questions | Updated On: Jun 23, 2025
Add To Cart

© Copyrights DumpsCertify 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.