In Java programming, a constructor is a section of code that initialises (constructs) the state and value when an object is created. The Java compiler calls default constructors in Java even if you don't provide one in the code.