Quiz Yourself: Creating and Invoking Overloaded Methods (Intermediate)

Overloaded methods must be valid, and all ambiguities must be resolved.

Quiz Yourself: Using Switch and Case Statements (Intermediate)

Java control statements can be confusing to learn and use correctly.

Quiz Yourself: Overriding Operator Precedence (Intermediate)

Parentheses make a real difference in the results of an evaluation.

Quiz Yourself: Migrating to the Java Platform Module System (Advanced)

You’re tasked with moving an application to JPMS. What’s the command line?

Quiz Yourself: Using Core Functional Interfaces: Consumer (Advanced)

The consumer interface can be confusing, even for advanced coders.

Quiz Yourself: Using Core Functional Interfaces: Predicate (Advanced)

Predicate interfaces can be complicated, so be careful when working out the results.

Quiz Yourself: Lambda Types (Advanced)

Can a lambda return a lambda?

Quiz Yourself: Functional Interfaces (Advanced)

Define and implement functional interfaces that work as expected.

Quiz Yourself: Lambda Expressions (Advanced)

The subtleties of using var in lambda expressions

Quiz Yourself: Two-Dimensional Arrays (Intermediate)

Using var with two-dimensional arrays requires careful attention.

Quiz Yourself: Understanding enums (Advanced)

The subtleties of using enums in a switch statement

Quiz Yourself: Final Classes (Intermediate)

The effects of declaring a class final

Quiz Yourself: Default Methods (Advanced)

What fields can you access from default methods in interfaces?

Quiz Yourself: Manipulate Data with StringBuilder (Intermediate)

When two object references point to the same StringBuilder instance, how are changes propagated?

Quiz Yourself: Identify the Scope of Variables (Intermediate)

Nuances of variable scope in for-loops

Quiz Yourself: Inner, Nested, and Anonymous Classes (Advanced)

Java’s mechanisms and syntax for defining classes inside other classes

Quiz Yourself: String Manipulation (Intermediate)

The subtleties of string concatenation

Quiz Yourself: Variable Declaration (Intermediate)

The scope rules of Java variables and an examination of shadowing

Quiz Yourself: One-Dimensional Arrays (Intermediate)

The subtleties of using a constructor to create an array

Quiz Yourself: Custom Exceptions (Advanced)

When exactly do you need to declare an exception?