100+ Free Java SE 11 Developer Practice Questions
Pass your Oracle Certified Professional: Java SE 11 Developer (Exam 1Z0-819) exam on the first try — instant access, no signup required.
What is the correct order of the core JDBC objects obtained when running a query?
Explore More Oracle Certifications
Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.
More From This Family
Videos and articles for deeper review.
Key Facts: Java SE 11 Developer Exam
$245
Exam Fee (USD)
Oracle
~68%
Passing Score
Oracle
90 min
Exam Duration
Oracle
~50
Question Count
Oracle
1Z0-815 + 1Z0-816
Exams Replaced by 1Z0-819
Oracle
No expiration
Credential Validity
Oracle
Oracle's Exam 1Z0-819 grants the Oracle Certified Professional: Java SE 11 Developer credential and is the single exam that replaced 1Z0-815 plus 1Z0-816. It costs $245 USD, presents about 50 multiple-choice and multiple-select questions in 90 minutes, and requires roughly a 68% score to pass. It is delivered through Pearson VUE, online proctored or at a test center, and the certification does not expire. The code-heavy blueprint spans Java data types and operators, program flow, the object-oriented approach, exception handling, arrays and collections with generics, streams and lambda expressions, the Java Platform Module System, concurrency, JDBC, localization, annotations, secure coding, and NIO.2 I/O.
Sample Java SE 11 Developer Practice Questions
Try these sample questions to test your Java SE 11 Developer exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1Given: var list = new ArrayList<String>(); list.add("a"); Which statement about the use of var on the first line is correct?
2What is the result of compiling and running: public class Main { public static void main(String[] args) { int x = 5; int y = x++ + ++x; System.out.println(y); } }
3Which expression correctly tests whether the int variable n is between 10 and 20 inclusive?
4Given: String s = "Hello"; s.concat(" World"); System.out.println(s); What is printed?
5Which Java 11 String method returns true for the string " " (three spaces) and false for "a"?
6Given: StringBuilder sb = new StringBuilder("Java"); sb.insert(2, "XX"); sb.delete(0, 2); System.out.println(sb); What is the result?
7Which assignment requires an explicit cast to compile?
8Given: Integer a = 127, b = 127; Integer c = 128, d = 128; System.out.println((a == b) + " " + (c == d)); What is printed on a standard JVM?
9What is the value of result? int result = 17 % 5;
10Given: var x = 10; var y = (x > 5) ? "big" : 0; What type is inferred for y, and does the code compile?
About the Java SE 11 Developer Exam
Exam 1Z0-819 leads to the Oracle Certified Professional: Java SE 11 Developer credential and is the single exam that replaced the former two-exam path of 1Z0-815 (Programmer I) and 1Z0-816 (Programmer II). It validates broad proficiency across the Java SE 11 language and core APIs, including object-oriented design, generics and collections, functional programming with streams and lambdas, the Java Platform Module System, concurrency with ExecutorService, exception handling, JDBC, localization, secure coding, and the NIO.2 file API. Questions are heavily code-based, asking candidates to predict output, identify compilation errors, and choose correct API usage. The certification does not expire.
Questions
50 scored questions
Time Limit
90 minutes
Passing Score
Approximately 68%
Exam Fee
$245 (Oracle)
Java SE 11 Developer Exam Content Outline
Working with Java Data Types, Operators, and String APIs
Use primitives and wrapper classes with operators, type promotion, and casting; handle text with String and StringBuilder, including Java 11 methods like isBlank and strip; and apply local variable type inference (var), including as a lambda parameter.
Controlling Program Flow
Create and use loops, if/else, and switch statements, including the enhanced for loop, labeled break and continue, do-while semantics, and String selectors in traditional switch.
Java Object-Oriented Approach
Declare and instantiate objects and nested classes; define fields, methods, constructors, and initializers; and apply inheritance, polymorphism, method hiding, interfaces with default methods, abstract classes, enums, and inner/anonymous classes.
Exception Handling
Use try/catch/finally, multi-catch with effectively final parameters, and try-with-resources on AutoCloseable resources; create custom checked and unchecked exceptions; and apply the checked-versus-unchecked rules.
Working with Arrays and Collections
Create and manipulate arrays (including jagged arrays), List, Set, Map, and Deque; use generics, bounded type parameters, and wildcards; sort with Comparator chains; and use immutable factory methods such as List.of and Map.getOrDefault.
Working with Streams and Lambda Expressions
Use lambdas, method references, and standard functional interfaces; build pipelines with filter, map, flatMap, reduce, and Collectors such as groupingBy and joining; use Optional and function composition; and understand stream laziness, short-circuiting, and single-use traversal.
Java Platform Module System
Declare modules with requires, requires transitive, exports, opens, uses, and provides...with; build modular and service-based applications; understand java.base, automatic modules, and open modules; and use migration tools like jdeps and jlink.
Concurrency
Create and manage threads; use ExecutorService, Runnable, Callable, and Future; apply synchronization and monitors, AtomicInteger, concurrent collections such as ConcurrentHashMap, and thread-pool factory methods, including correct shutdown semantics.
Java I/O API and NIO.2
Read and write console and file data with I/O streams and buffered readers; serialize and deserialize objects with transient and static field rules; and handle the file system with the java.nio.file Path and Files APIs.
Database Applications, Localization, and Annotations
Use the JDBC API with Connection, PreparedStatement, ResultSet, and executeUpdate; apply Locale, resource bundles, NumberFormat, MessageFormat, and DateTimeFormatter; and use core annotations such as @Override, @FunctionalInterface, @Deprecated(forRemoval), and @SuppressWarnings.
Secure Coding in Java SE Applications
Mitigate threats such as denial of service, code injection, and improper input validation; defend against SQL injection with parameterized PreparedStatements; use defensive copying to protect mutable state; and store secrets in char arrays rather than immutable Strings.
How to Pass the Java SE 11 Developer Exam
What You Need to Know
- Passing score: Approximately 68%
- Exam length: 50 questions
- Time limit: 90 minutes
- Exam fee: $245
Keys to Passing
- Complete 500+ practice questions
- Score 80%+ consistently before scheduling
- Focus on highest-weighted sections
- Use our AI tutor for tough concepts
Java SE 11 Developer Study Tips from Top Performers
Frequently Asked Questions
What are the current exam facts for 1Z0-819?
Oracle's Exam 1Z0-819 costs $245 USD, presents about 50 multiple-choice and multiple-select questions in 90 minutes, and requires roughly a 68% score to pass. It is delivered through Pearson VUE, online proctored or at a test center, and the resulting certification does not expire.
Did 1Z0-819 replace 1Z0-815 and 1Z0-816?
Yes. Exam 1Z0-819 is the single exam that combined and replaced the former two-exam path of Java SE 11 Programmer I (1Z0-815) and Programmer II (1Z0-816), so one exam now earns the OCP Java SE 11 Developer credential.
What does the 1Z0-819 exam cover?
The code-heavy blueprint spans Java data types and operators, program flow, the object-oriented approach, exception handling, arrays and collections with generics, streams and lambdas, the Java Platform Module System, concurrency, JDBC, localization, annotations, secure coding, and NIO.2 I/O.
Which topics carry the most weight on 1Z0-819?
Oracle does not publish per-objective percentages, but the Java Object-Oriented Approach, Working with Streams and Lambda Expressions, and Arrays and Collections areas are widely regarded as the heaviest, so candidates should drill OO design, generics, and the Stream API hardest.
Does the Java SE 11 Developer certification expire?
No. Unlike some role-based certifications, the Oracle Certified Professional: Java SE 11 Developer credential earned through 1Z0-819 does not expire, though candidates often upgrade later to newer LTS releases such as Java SE 17 or 21.
What is the best way to prepare for 1Z0-819?
Write and run real Java 11 code: predict program output, hunt compilation errors, and master tricky areas like var inference, default-method conflicts, try-with-resources, JPMS module directives, and stream short-circuiting. Hands-on coding beats memorization on this exam.