return statement is used inside a method to come out of it. System.exit(0) is used in a method to come out of the program.
No comments:
Post a Comment