aspose file tools*
The moose likes Beginning Java and the fly likes return statement usages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "return statement usages" Watch "return statement usages" New topic
Author

return statement usages

saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583

Hi folk
So far i know that i can use return statement inside a method or inside a loop or inside if-else statement.Is something remaining where we use it ?


Tell the difficulties that i am difficult.
Gaurangkumar Khalasi
Ranch Hand

Joined: Jun 02, 2012
Posts: 187
saloni jhanwar wrote: i know that i can use return statement inside a method or inside a loop or inside if-else statement.Is something remaining where we use it ?


In Constructor, for example try out the following:
 
Don't get me started about those stupid light bulbs.
 
subject: return statement usages