what is the difference between methods and constructors in java?
The important difference between constructors and methods is that constructors initialize objects that are being created with the new operator, while methods perform operations on objects that already exist. Constructors can't be called directly; they are called implicitly when the new keyword creates an object.