Question 1
Given: var list = new ArrayList (); list.add("a"); Which statement about the use of var on the first line is correct?
Correct Answer:
var infers the type as ArrayList , so list.add("a") compiles.
Question 2
What 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); } }
Correct Answer:
12
Question 3
Which expression correctly tests whether the int variable n is between 10 and 20 inclusive?
Correct Answer:
n >= 10 && n <= 20
Question 4
Given: String s = "Hello"; s.concat(" World"); System.out.println(s); What is printed?
Correct Answer:
Hello
Question 5
Which Java 11 String method returns true for the string " " (three spaces) and false for "a"?
Correct Answer:
isBlank()
Question 1
Exam overview

About this Exam

Prepare with the Java SE 11 Developer Practice Questions - Oracle Certified Professional Java SE 11 Developer (Exam 1Z0-819) Exam practice quiz. This question bank includes 100 questions covering printed, println, list, class, and string. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

Java SE 11 Developer Practice Questions - Oracle Certified Professional Java SE 11 Developer (Exam 1Z0-819) Exam

This practice set contains 100 questions from the matching question bank and focuses on printed, println, list, class, and string. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions