Question 1
Which statement about Java's `var` local-variable type inference (introduced in SE 10) is true in Java SE 17?
Correct Answer:
`var` infers the type at compile time and can only be used for local variables, indexes in for-loops, and try-with-resources
Question 2
Given: ``` int a = 5; int b = 2; double c = a / b; System.out.println(c); ``` What is printed?
Correct Answer:
2.0
Question 3
What is the value of `s.length()` after `String s = "caf\u00e9";`?
Correct Answer:
4
Question 4
Which `String` method introduced before Java 17 returns `true` only when the string is empty or contains only whitespace characters as defined by `Character.isWhitespace`?
Correct Answer:
`isBlank()`
Question 5
Given the text block: ``` String s = """ hello world """; ``` What is the value of `s` (using ` ` to represent a newline)?
Correct Answer:
`hello world `
Question 1
Exam overview

About this Exam

Prepare with the Java SE 17 (1Z0-829) Practice Questions - Oracle Java SE 17 Developer Certified Professional (1Z0-829) Exam practice quiz. This question bank includes 100 questions covering java, string, list, stream, and println. 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 17 (1Z0-829) Practice Questions - Oracle Java SE 17 Developer Certified Professional (1Z0-829) Exam

This practice set contains 100 questions from the matching question bank and focuses on java, string, list, stream, and println. 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