Question: what is the difference between constructor and method in java?
Answer: Constructor is used to initialize an object whereas method is used to exhibits functionality of an object. Constructors are invoked implicitly whereas methods are invoked explicitly. ... Constructor should be of the same name as that of class. Method name should not be of the same name as that of class.