# Reflection

Inspecting and using types, members, and annotations at runtime.

## What is **Reflection** in Java?

**Reflection** — Inspecting and using types, members, and annotations at runtime.

```java
class TypeInspector {
    String typeName(Object value) {
        Class<?> type = value.getClass();
        return type.getSimpleName();
    }
}
```

Level: Master · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/master)

Updated: September 27, 2026

## In other subjects

- [Reflection in C#](https://www.ask-codey.com/glossary/reflection-c-sharp)

Source: https://www.ask-codey.com/glossary/reflection
