Coding Fun Java JAVA Calling Object Methods

JAVA Calling Object Methods

More videos like this online at
We have seen so far how we can call methods on objects that we have defined though reference variables and how that has an effect on the life-cycle of the object. If we only need to object for one task we may call methods on anonymous objects and we see how. With no reference variable it may be cleared by the garbage collection as soon as it is run. If we need access to more than one method or filed though we would create the…

Tags: , , , , , , , , , , , , , ,

2 thoughts on “JAVA Calling Object Methods”

  1. srikar sana says:

    what i dont understand is why do we need objects to call methods of the same program
    ? pls help me

Leave a Reply

Your email address will not be published. Required fields are marked *