Tag: void purpose
-
Return type and void purpose
Return type: It is used to perform certain tasks or processing of data in the program to yield the expected results. A method can accept data from outside and can also return the results. To return the result, a return statement is used inside a method to come out of it to the calling method.…