Forums Java Help What is the difference between constructor and method

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4135
    Aakanksha
    Participant

    What is the difference between constructor and method?

    #11609
    Aakanksha
    Participant

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.