What is the difference between constructor and method?

Answer Posted / shadow

Constructor will be automatically invoked when an object is
created whereas method has to be called explicitly. ...!

$HADOW

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is map in java?

514


What are the 5 types of research methods?

585


Why java is used everywhere?

586


Difference between throw and throws?

616


What is a consumer in java?

564






What is the use of flag?

577


What's the difference between int and integer in java?

529


what is server side caching?

1602


What is instance example?

521


What is an exception? difference between Checked and Unchecked exception in Java

552


What is difference between string and stringbuffer?

490


Is singleton set an interval?

528


State the difference between creating string as new () and literal.

519


What is a method in java?

558


Why charat is used in java?

536