Question: what is the difference between method and constructor in java?
Answer: 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.