# Method

A named block of code that performs an action and can return a value.

## What is **Method** in Java?

**Method** — A named block of code that performs an action and can return a value.

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

Updated: September 27, 2026

## In other subjects

- [Method in C#](https://www.ask-codey.com/glossary/method-c-sharp)
- [Method in JavaScript](https://www.ask-codey.com/glossary/method-javascript)
- [Method in OOP](https://www.ask-codey.com/glossary/method-oop)

Source: https://www.ask-codey.com/glossary/method-java
