DE Mastery GitHub

Java for data engineers · JVM-01

Java for Python developers

  • 4 h

From your world. porting a dbt macro's Python helper logic into a typed Java method

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz JVM-01.

1You have String a = "USD"; and another String b built at runtime that also holds "USD". Which test reliably checks that they hold the same text?
2What does a one-line public record Order(String currency, double amount) {} give you?
3A method may not find a value. Which return type best expresses "possibly absent"? Callers must handle it. You want to avoid the risk of a NullPointerException.
4Which statement about checked vs unchecked exceptions in Java is correct?
5What is x -> x * 2 in Java?
6A file declares package de.mastery; and public class Money. Where must the source file be in relation to the source root?
7Why does if (someList) not compile in Java, when if some_list: works in Python?