# Default Constructor

A no-argument constructor supplied by the compiler when a class declares none.

## What is **Default Constructor** in Java?

**Default Constructor** — A no-argument constructor supplied by the compiler when a class declares none.

```java
class Book {
    String title;

    Book(String title) {
        this.title = title;
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Default Constructor in C#](https://www.ask-codey.com/glossary/default-constructor-c-sharp)

Source: https://www.ask-codey.com/glossary/default-constructor
