Compare method and constructor?
Answers
Answered by
1
Difference between constructor and method in Java. 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 does not return any value where the method may/may not return a value.
i hope this answer helps..
mark me as a brainliest..
Answered by
3
Difference between constructor and method in Java. ... 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 does not return any value where the method may/may not return a value.
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
India Languages,
4 months ago
Physics,
9 months ago
Chemistry,
9 months ago
English,
1 year ago
Physics,
1 year ago
English,
1 year ago