Oracle 1Z0-819 Online Practice
Questions and Exam Preparation
1Z0-819 Exam Details
Exam Code
:1Z0-819
Exam Name
:Java SE 11 Developer
Certification
:Oracle Certifications
Vendor
:Oracle
Total Questions
:332 Q&As
Last Updated
:Jun 19, 2026
Oracle 1Z0-819 Online Questions &
Answers
Question 141:
Which three annotation uses are valid? (Choose three.)
A. Function func = (@NonNull x) > x.toUpperCase(); B. var v = "Hello" + (@Interned) "World" C. Function func = (var @NonNull x) > x.toUpperCase(); D. Function func = (@NonNull var x) > x.toUpperCase(); E. var myString = (@NonNull String) str; F. var obj = new @Interned MyObject();
A. Function func = (@NonNull x) > x.toUpperCase(); C. Function func = (var @NonNull x) > x.toUpperCase(); F. var obj = new @Interned MyObject();
Question 142:
Given: What is the result?
A. 4 B. 3 C. An exception is thrown at runtime. D. 5
A. 4
Question 143:
Which method throws an exception for not-a-number and infinite input values?
A. Option A B. Option B C. Option C D. Option D
A. Option A
Question 144:
Which code fragment prints 100 random numbers?
A. Option A B. Option B C. Option C D. Option D
D. Option D
Question 145:
Given: What is the output?
A. 1 2 [1, 2, 3, four] 3 four B. 1 2 [1, 2, 3, 4] 3 4 C. 1 2 [1, 2, 3, 4] 3 four D. 1 2 [1, 2, 3, four] 3 4
D. 1 2 [1, 2, 3, four] 3 4
Question 146:
Which module-info.java is correct for a service provider for a print service defined in the PrintServiceAPI module?
A. module PrintServiceProvider { requires PrintServiceAPI; exports org.printservice.spi; B. module PrintServiceProvider { requires PrintServiceAPI; provides org.printservice.spi.Print with com.provider.PrintService; } C. module PrintServiceProvider { requires PrintServiceAPI; uses com.provider.PrintService; } D. module PrintServiceProvider { requires PrintServiceAPI; exports org.printservice.spi.Print with com.provider.PrintService; }
B. module PrintServiceProvider { requires PrintServiceAPI; provides org.printservice.spi.Print with com.provider.PrintService; }
Question 147:
Given: Which statement is true?
A. The code compiles successfully. B. The code fails to compile as res2 should be declared as final. C. The code fails to compile as MyResource must implement Closeable. D. The code fails to compile as try-try-resource needs a variable declaration such as MyResource r1= res1; MyResource r2 = res2;.
A. The code compiles successfully.
Question 148:
Given:
Which two statements are true if the method is added to Bar? (Choose two.)
A. public Collection foo(Collection arg) { ... } overrides Foo.foo. B. public Collection foo(Stream arg) { ... } overloads Foo.foo. C. public List foo(Collection arg) { ... } overrides Foo.foo. D. public Collection foo(Collection arg) { ... } overloads Foo.foo. E. public Collection bar(Collection arg) { ... } overloads Foo.foo. F. public Iterable foo(Collection arg) { ... } overrides Foo.foo.
C. public List foo(Collection arg) { ... } overrides Foo.foo. F. public Iterable foo(Collection arg) { ... } overrides Foo.foo.
Question 149:
Given TripleThis.java:
Compiling TripleThis.java gives this compiler warning:
Note: TripleThis.java uses unchecked or unsafe operations.
Which two replacements remove this compiler warning and prints 12? (Choose two.)
A. Replace line 12 with public static void printValue(Function f, int num) { B. Replace line 12 with public static void printValue(Function f, T num) { C. Replace line 9 with Function tripler = x --> { return (Integer) x * 3; } D. Replace line 12 with public static void printValue(Function f, Integer num) { E. Replace line 9 with Function tripler = x -> { return x * 3; } F. Replace line 9 with Function tripler = x -> [ return x * 3; ]
A. Replace line 12 with public static void printValue(Function f, int num) { D. Replace line 12 with public static void printValue(Function f, Integer num) {
Question 150:
Given:
and the code fragment:
You want to examine the items list if it contains an item for which the variable count is below zero. Which code fragment at line 1 will accomplish this?
A. if(items.stream().allMatch(i -> i.count < 0)) { B. if(items.stream().anyMatch(i -> i.count < 0)) { C. if(items.stream().filter(i -> i.count < 0).findAny()) { D. if(items.stream().filter(i -> i.count < 0).findFirst()) {
B. if(items.stream().anyMatch(i -> i.count < 0)) {
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Oracle exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 1Z0-819 exam preparations
and Oracle certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.