InterviewSolution
Saved Bookmarks
| 1. |
Compare method and constructor? |
| Answer» NCE 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.. | |