Tag: void in java
-
Return key and type casting in java
Returning a Value from a Method A method returns to the code that invoked it when it whichever occurs first. You declare a method’s return type in its method declaration. Within the body of the method, you use the return statement to return the value. Any method declared void doesn’t return a value. It does…