ORACLE 1Z0-816 CERTIFICATION EXAM QUESTIONS AND ANSWERS 1Z0-816 Abstract
Get complete detail on 1Z0-816 exam guide to crack Oracle Java SE 11 Programmer II. You can collect all information on 1Z0-816 tutorial, practice test, books, study material, exam questions, and syllabus. Firm your knowledge on Oracle Java SE 11 Programmer II and get ready to crack 1Z0-816 certification. Explore all information on 1Z0-816 exam with number of questions, passing percentage and time duration to complete test.
DBexam.com
WWW.DBEXAM.COM
How to Prepare for 1Z0-816 Exam on Oracle Java SE 11 Programmer II Certification? Oracle Java SE 11 Programmer II (1Z0-816) preparation guide helps you to get focused on the exam. This guide also helps you to be on the 1Z0-816 exam track to get certified with a good score in the final exam.
1Z0-816 Oracle Java SE 11 Programmer II Exam Summary Exam Name
Oracle Java SE 11 Programmer II
Exam Code
1Z0-816
Exam Product Version
Oracle Java 11
1Z0-816: Oracle Java SE 11 Programmer II
1
WWW.DBEXAM.COM
Exam Price
USD $245 (Pricing may vary by country or by localized currency)
Duration
180 minutes
Number of Questions
80
Passing Score
63%
Format
Multiple Choice Questions (MCQ)
Recommended Training
Java SE: Programming II Java Programming Learning Subscription Core Java Learning Subscription Unlimited Product Learning Subscription
Schedule Exam
Pearson VUE
Sample Questions
Oracle Certified Professional - Java SE 11 Developer (OCP)
Recommended Practice
1Z0-816 Online Practice Exam
Exam Syllabus: 1Z0-816 Oracle Java SE 11 Programmer II Subjects Java Fundamentals
Java Interfaces Functional Interface and Lambda Expressions
Sub Topics - Create and use final classes - Create and use inner, nested and anonymous classes - Create and use enumerations - Create and use interfaces with default methods - Create and use interfaces with private methods - Define and write functional interfaces - Create and use lambda expressions including statement
1Z0-816: Oracle Java SE 11 Programmer II
2
WWW.DBEXAM.COM
lambdas, local-variable for lambda parameters Built-in Functional Interfaces - Use interfaces from the java.util.function package - Use core functional interfaces including Predicate, Consumer, Function and Supplier - Use primitive and binary variations of base interfaces of java.util.function package Migration to a Modular - Migrate the application developed using a Java version prior to Application SE 9 to SE 11 including top-down and bottom-up migration, splitting a Java SE 8 application into modules for migration - Use jdeps to determine dependencies and identify ways to address the cyclic dependencies Concurrency - Create worker threads using Runnable, Callable and use an ExecutorService to concurrently execute tasks - Use java.util.concurrent collections and classes including CyclicBarrier and CopyOnWriteArrayList - Write thread-safe code - Identify threading problems such as deadlocks and livelocks I/O (Fundamentals and - Read data from and write console and file data using I/O Streams NIO2) - Use I/O Streams to read and write files - Read and write objects by using serialization - Use the Path interface to operate on file and directory paths - Use the Files class to check, delete, copy or move a file or directory - Use the Stream API with Files Database Applications with - Connect to databases using JDBC URLs and DriverManager JDBC - Use PreparedStatement to perform CRUD operations - Use PreparedStatement and CallableStatement APIs to perform database operations Annotations - Describe the purpose of annotations and typical usage patterns - Apply annotations to classes and methods - Describe commonly used annotations in the JDK - Declare custom annotations Exception Handling and - Use the try-with-resources construct Assertions - Create and use custom exception classes - Test invariants by using assertions Generics and Collections - Use wrapper classes, autoboxing and autounboxing - Create and use generic classes, methods with diamond notation and wildcards - Describe the Collections Framework and use key collection interfaces - Use Comparator and Comparable interfaces - Create and use convenience methods for collections Java Stream API - Describe the Stream interface and pipelines
1Z0-816: Oracle Java SE 11 Programmer II
3
WWW.DBEXAM.COM
Lambda Operations on Streams
Services in a Modular Application
Parallel Streams Secure Coding in Java SE Application
Localization
- Use lambda expressions and method references - Extract stream data using map, peek and flatMap methods - Search stream data using search findFirst, findAny, anyMatch, allMatch and noneMatch methods - Use the Optional class - Perform calculations using count, max, min, average and sum stream operations - Sort a collection using lambda expressions - Use Collectors with streams, including the groupingBy and partitioningBy operations - Describe the components of Services including directives - Design a service type, load services using ServiceLoader, check for dependencies of the services including consumer and provider modules - Develop code that uses parallel streams - Implement decomposition and reduction with streams - Prevent Denial of Service in Java applications - Secure confidential information in Java application - Implement Data integrity guidelines- injections and inclusion and input validation - Prevent external attack of the code by limiting Accessibility and Extensibility, properly handling input validation, and mutability - Securely constructing sensitive objects - Secure Serialization and Deserialization - Use the Locale class - Use resource bundles - Format messages, dates, and numbers with Java
Oracle 1Z0-816 Certification Sample Questions and Answers To make you familiar with Oracle Java SE 11 Programmer II (1Z0-816) certification exam structure, we have prepared this sample question set. We suggest you to try our Sample Questions for Oracle OCP 1Z0-816 Certification to test your understanding of the Oracle 1Z0-816 process with the real Oracle certification exam environment.
1Z0-816 Oracle Java SE 11 Programmer II Sample Questions 01. Given: public class Client { static void doCalc(byte... a) { System.out.print("byte...");
1Z0-816: Oracle Java SE 11 Programmer II
4
WWW.DBEXAM.COM
} static void doCalc(long a, long b) { System.out.print("long, long"); } static void doCalc(Byte s1, Byte s2) { System.out.print("Byte, Byte"); } public static void main (String[] args) { byte b = 5; doCalc(b, b); } } a) byte… b) long, long c) Byte, Byte d) compilation error 02. Which interface in the java.util.function package can return a primitive type? a) ToDoubleFunction b) Supplier c) BiFunction d) LongConsumer 03. Which two statements set the default locale used for formatting numbers, currency, and percentages? (Choose two.) a) Locale.setDefault(Locale.Category.FORMAT, “zh-CN”); b) Locale.setDefault(Locale.Category.FORMAT, Locale.CANADA_FRENCH); c) Locale.setDefault(Locale.SIMPLIFIED_CHINESE); d) Locale.setDefault(“en_CA”); e) Locale.setDefault(“es”, Locale.US); 04. Which two statements independently compile? (Choose two.) a) List<? super Short> list = new ArrayList<Number>(); b) List<? super Number> list = new ArrayList<Integer>(); c) List<? extends Number> list = new ArrayList<Byte>(); d) List<? extends Number> list = new ArrayList<Object>(); e) Listlist = new ArrayList(); 05. Given these named modular JARs and their module-info java files order.jar: module order { requires product; exports com.oracle.order;
1Z0-816: Oracle Java SE 11 Programmer II
5
WWW.DBEXAM.COM
} product.jar: module product { exports com.oracle.product; } Which is the only possible result of executing the command jdeps -s order.jar product.jar? a) order -> java. baseorder -> product product -> java.base b) order -> product c) product -> order d) java.base -> product java.base -> order product -> order 06. Given the code fragment: 10. var lst = List.of(1, 2, 3, 4); 11. lst.replaceAll(x -> x + 100); 12. System.out.println(“-Completed-”); Which action enables to print -Completed-? a) Replacing line 10, with List<Integer> lst = List.of(1,2,3,4); b) Replacing line 11, with lst.replaceAll(x = x + 100); c) Replacing line 10, with var lst = Arrays.asList(1, 2, 3, 4); d) Replacing line 11, with lst.forEach(x -> x + 100); 07. Which two are guidelines for preventing denial of service attacks? a) Release resources in all cases. b) Resource limit checks should not suffer from numeric overflow. c) Purge sensitive information from exceptions. d) Validate file formats before processing untrusted files. e) Make public static fields final. f) Use mutable classes whenever possible. 08. 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.) a) double avg = numbers.stream().parallel().averagingDouble(a −> a); b) double avg = numbers.parallelStream().mapToInt (m −> m).average().getAsDouble(); c) double avg = numbers.stream().mapToInt (i −> i).average().parallel(); d) double avg = numbers.stream().average().getAsDouble();
1Z0-816: Oracle Java SE 11 Programmer II
6
WWW.DBEXAM.COM
09. Which code fragment does a service use to load the service provider with a Print interface? a) private Print print = com.service.Provider.getInstance(); b) private java.util.ServiceLoader loader = ServiceLoader.load(Print.class); c) private java.util.ServiceLoader loader = new java.util.ServiceLoader<>(); d) private Print print = new com.service.Provider.PrintImpl(); 10. Given the code fragment: Stream<Integer> numStream = Stream.of(10, 20, 30); numStream.map(n -> n + 10).peek(s -> System.out.print(s)); numStream.forEach(s -> System.out.println(s)); What it the result? a) 203040 102030 b) 102030 203040 c) 102030 102030 d) An exception is thrown at runtime. Solution: QUESTION: 01
QUESTION: 02
QUESTION: 03
QUESTION: 04
QUESTION: 05
Answer: b
Answer: a
Answer: b, d
Answer: a, c
Answer: a
QUESTION: 06
QUESTION: 07
QUESTION: 08
QUESTION: 09
QUESTION: 10
Answer: c
Answer: a, b
Answer: b
Answer: b
Answer: d
How to Register for 1Z0-816 Oracle Java SE 11 Programmer II Exam? ●
Purchase exam voucher from Oracle University
●
Register for an exam at PearsonVue.
1Z0-816: Oracle Java SE 11 Programmer II
7