return keyword in Java

Опубликовано: 28 Июнь 2026
на канале: Shake Hands with Programming
333
6

Another jump statement in java is return : It is also a keyword which is used to transfer the control from called method to calling method with or without some value.

NOTE:- A method can accept any number of arguments but can return
maximum one output.
If a method does not return any value then it is called as void.

Feel free to post your queries and doubts in the comment section below...Just hope you are able to understand the logic and concept, please give some suggestions for improvement...Thankyou everyone ♡♥♡...!!!