# Stack Trace

say it: **“stak TRAYS”** **/stæk ˈtreɪs/**

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?category=java&level=3)

Updated: November 17, 2026

## In other subjects

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

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