If a method has a return type other than void , it use the return statement to send a value back to the caller.
: The data type the method returns (e.g., int , String ). Use void if it returns nothing.
Methods created by the programmer to perform specific custom logic. 4. Parameters and Arguments You can pass data into methods using parameters.