# Java Level 10: Reflection & Language Infrastructure

> Level 10: Reflection & Language Infrastructure of the LoWisa Java course: Annotations, Reflection, Dynamic Language Features and Trade-Offs. 3 lessons and 9 ideas, each explained in one line.

Reflection & Language Infrastructure is level 10 of 16 of the [LoWisa Java course](/courses/java/). It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

## Annotations

- **What annotations are.** An **annotation** attaches metadata to code: @Override for the compiler, @Test for tools reading later.
- **Retention.** **Retention** decides how long an annotation survives: source, class file, or visible at runtime.
- **Writing your own.** Custom annotations plus a processor let you declare intent once and **generate** the boilerplate.

## Reflection

- **Reflection basics.** **Reflection** inspects classes at runtime: fields, methods and annotations discovered from Class objects.
- **Dynamic invocation.** Reflection can **invoke** methods found by name: the machinery under dependency injection and test runners.
- **The cost.** Reflection trades **safety** and speed for flexibility: application code should rarely reach for it directly.

## Dynamic Language Features and Trade-Offs

- **Proxies.** A dynamic **proxy** implements an interface at runtime, wrapping calls: how frameworks add behaviour invisibly.
- **Class loading.** Classes load lazily through **classloaders**: plugins and containers isolate code by loader.
- **Magic budget.** Every reflective trick spends the team’s **debuggability**: frameworks may, application code mostly should not.

## Before and after this level

- **Before:** [Level 9: JVM & Memory](/courses/java/level-9-jvm-and-memory/): Heap, Stack and Object Allocation, Garbage Collection, JVM Runtime Behaviour.
- **Next:** [Level 11: Networking & Data](/courses/java/level-11-networking-and-data/): HTTP and Network Programming, JDBC and Database Access, Reliable External Integrations.

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).

## Frequently asked questions

### What does Java Level 10: Reflection & Language Infrastructure cover?

Annotations, Reflection, Dynamic Language Features and Trade-Offs: 3 lessons and 9 ideas.

### What should I know before this level?

The level before it, Level 9: JVM & Memory, which covers Heap, Stack and Object Allocation, Garbage Collection, JVM Runtime Behaviour.

## Learn Java on your phone

The first level is free. LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/java/level-10-reflection-and-language-infrastructure/ · Updated 2026-11-16
