+ 1
What do you mean by method - call in java ?
Explain in detai...
2 Answers
+ 6
â
Alphaâ
â PÓŠŃŃŃÔӊи â
When a program invokes a method,
the program control gets transferred to the called method.
This called method then returns control to the caller in two conditions,
then the return statement is executed.
đđI hope this was helpful for uđđ
+ 3
A method is a set of code which is referred to by name and can be called (invoked) at any point in a program simply by utilizing the method's name. Think of a method as a subprogram that acts on data and often returns a value.
Each method has its own name. When that name is encountered in a program, the execution of the program branches to the body of that method. When the method is finished, execution returns to the area of the program code from which it was called, and the program continues on to the next line of code.