1. What is record ? Junior A. a concise immutable data carrier introduced in Java 16 that auto-generates a constructor, accessors, equals, hashCode, and toString B. a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter C. local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer D. a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast Reveal the answer + AI explanation — free account
2. Which term means: "a concise immutable data carrier introduced in Java 16 that auto-generates a constructor, accessors, equals, hashCode, and toString"? Junior A. var keyword B. virtual thread C. record D. switch expression Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. record — a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread B. record — a concise immutable data carrier introduced in Java 16 that auto-generates a constructor, accessors, equals, hashCode, and toString C. record — a class or interface that restricts which other classes may extend or implement it using a permits clause D. record — a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements Reveal the answer + AI explanation — free account
4. What is sealed class ? Mid A. a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast B. local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer C. a class or interface that restricts which other classes may extend or implement it using a permits clause D. a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread Reveal the answer + AI explanation — free account
5. Which term means: "a class or interface that restricts which other classes may extend or implement it using a permits clause"? Mid A. record B. pattern matching for instanceof C. sealed class D. virtual thread Reveal the answer + AI explanation — free account
6. Which statement is correct? Mid A. sealed class — a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast B. sealed class — a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter C. sealed class — a class or interface that restricts which other classes may extend or implement it using a permits clause D. sealed class — local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer Reveal the answer + AI explanation — free account
7. What is var keyword ? Junior A. a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements B. a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter C. local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer D. a concise immutable data carrier introduced in Java 16 that auto-generates a constructor, accessors, equals, hashCode, and toString Reveal the answer + AI explanation — free account
8. Which term means: "local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer"? Junior A. pattern matching for instanceof B. var keyword C. record D. text block Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. var keyword — a class or interface that restricts which other classes may extend or implement it using a permits clause B. var keyword — local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer C. var keyword — a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements D. var keyword — a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread Reveal the answer + AI explanation — free account
10. What is switch expression ? Mid A. a class or interface that restricts which other classes may extend or implement it using a permits clause B. a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread C. a concise immutable data carrier introduced in Java 16 that auto-generates a constructor, accessors, equals, hashCode, and toString D. a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements Reveal the answer + AI explanation — free account
11. Which term means: "a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements"? Mid A. virtual thread B. sealed class C. switch expression D. var keyword Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. switch expression — local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer B. switch expression — a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter C. switch expression — a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements D. switch expression — a class or interface that restricts which other classes may extend or implement it using a permits clause Reveal the answer + AI explanation — free account
13. What is virtual thread ? Senior A. a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter B. local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer C. a class or interface that restricts which other classes may extend or implement it using a permits clause D. a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread Reveal the answer + AI explanation — free account
14. Which term means: "a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread"? Senior A. sealed class B. text block C. virtual thread D. pattern matching for instanceof Reveal the answer + AI explanation — free account
15. Which statement is correct? Senior A. virtual thread — a concise immutable data carrier introduced in Java 16 that auto-generates a constructor, accessors, equals, hashCode, and toString B. virtual thread — a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread C. virtual thread — a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter D. virtual thread — a class or interface that restricts which other classes may extend or implement it using a permits clause Reveal the answer + AI explanation — free account
16. What is text block ? Mid A. a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter B. a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast C. a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread D. a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements Reveal the answer + AI explanation — free account
17. Which term means: "a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter"? Mid A. virtual thread B. pattern matching for instanceof C. switch expression D. text block Reveal the answer + AI explanation — free account
18. Which statement is correct? Mid A. text block — a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast B. text block — a class or interface that restricts which other classes may extend or implement it using a permits clause C. text block — a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements D. text block — a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter Reveal the answer + AI explanation — free account
19. What is pattern matching for instanceof ? Senior A. a class or interface that restricts which other classes may extend or implement it using a permits clause B. a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast C. a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread D. a multi-line string literal delimited by triple quotes, introduced in Java 15, that preserves formatting without escape clutter Reveal the answer + AI explanation — free account
20. Which term means: "a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast"? Senior A. text block B. pattern matching for instanceof C. virtual thread D. sealed class Reveal the answer + AI explanation — free account
21. Which statement is correct? Senior A. pattern matching for instanceof — local variable type inference introduced in Java 10 that lets the compiler deduce a variable's type from its initializer B. pattern matching for instanceof — a feature that binds a tested object to a typed variable in the same expression, removing the need for an explicit cast C. pattern matching for instanceof — a lightweight JVM-managed thread finalized in Java 21 that enables massive concurrency without mapping one-to-one to an OS thread D. pattern matching for instanceof — a form of switch introduced in Java 14 that yields a value using arrow labels and requires no break statements Reveal the answer + AI explanation — free account