Computer Science, asked by rajeshmauryamau25, 9 months ago

Compare method and constructor?

Answers

Answered by dadslover919
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 Anonymous
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.

 &lt;/form&gt; &lt;div class="item button-pressure" style="--bg-color: #9b59b6;"&gt;</p><p>    &lt;button&gt;♛WeedAfterBrainly♛</p><p>      &lt;marquee scrollamount="5"&gt;&lt;span&gt;╭∩╮(-ᴥ-ʋ)&lt;/span&gt;&lt;/marquee&gt;

Similar questions