# Stack Trace

A report showing the active method calls at the point an error occurred.

## What is **Stack Trace** in Java?

**Stack Trace** — A report showing the active method calls at the point an error occurred.

```java
class ErrorInspector {
    StackTraceElement firstCall(Exception error) {
        StackTraceElement[] calls = error.getStackTrace();
        return calls[0];
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Stack Trace in C#](https://www.ask-codey.com/glossary/stack-trace-c-sharp)

Source: https://www.ask-codey.com/glossary/stack-trace
