Semantic portal
Main
Courses
Domains
Terminology
About
Object: Using Objects
Using Objects: Calling an Object's Methods
Calling an
Object
's Methods
ObjectReference.methodName(argumentList);
ObjectReference.methodName();
You use an
object
reference to invoke an
object
's method.
You append the method's simple name to the
object
reference, with an intervening dot
operator
(.).
Provide, within enclosing parentheses, any arguments to the method. If the method does not require any arguments, use empty parentheses.
Related concepts
Object
Operators in Java
Object: Using Objects
→
Calling an Object's Methods
Using Objects: Calling an Object's Methods — Structure map
Clickable & Draggable!
Using Objects: Calling an Object's Methods — Related pages:
Objects