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

By Simon Roberts April 2020 April 2020, Java SE, Quiz

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

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

By Simon Roberts April 2020 April 2020, Java SE, Quiz

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)

By Simon Roberts January 2020 January 2020, Java SE, Quiz

The subtleties of using enums in a switch statement

Quiz Yourself: Final Classes (Intermediate)

By Simon Roberts January 2020 January 2020, Java SE, Quiz

The effects of declaring a class final

Quiz Yourself: Default Methods (Advanced)

By Simon Roberts January 2020 January 2020, Java SE, Quiz

What fields can you access from default methods in interfaces?

Quiz Yourself: Manipulate Data with StringBuilder (Intermediate)

By Simon Roberts January 2020 January 2020, Java SE, Quiz

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

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)

By Simon Roberts October 2019 Java SE, October 2019, Quiz

The subtleties of using a constructor to create an array

Quiz Yourself: Custom Exceptions (Advanced)

By Simon Roberts October 2019 Java SE, October 2019, Quiz

When exactly do you need to declare an exception?

Quiz Yourself: Read and Set the Locale (Advanced)

By Simon Roberts October 2019 Java SE, October 2019, Quiz

For happy users, specify the locale correctly.

Quiz Yourself: Functional Interfaces (Advanced)

By Simon Roberts October 2019 Java SE, October 2019, Quiz

The subtleties of boxing and unboxing in streams

Quiz Yourself: Using Collectors (Advanced)

By Simon Roberts September 2019 Quiz, September 2019

Where care is needed to get the results you expect from the Collectors class