Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Alma Austin   on Apr 27 In Java Category.

  
Question Answered By: Miriam Green   on Apr 27


return always returns back  from the method to the
point where the method was called. This is valid only
if the called method ('main' in this case) has void  as
the return  parameter.
Here, since 'main' is called by the java environment,
return takes you back to the OS.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on regarding exception Or get search suggestion and latest updates.


Tagged: