# main Method

The usual starting point of a Java application.

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

**main Method** — The usual starting point of a Java application.

```java
class Greeting {
    public static void main(String[] args) {
        String message = "Hello, Java!";
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Main Method in C#](https://www.ask-codey.com/glossary/main-method-c-sharp)

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