Java Interview Questions
What is the difference between return and System.exit(0)?
return statement is used inside a method to come out of it. System.exit(0) is used in any method to come out of the program.