File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes return???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "return????" Watch "return????" New topic
Author

return????

mansi gupte
Ranch Hand

Joined: Dec 30, 2008
Posts: 72
What does return mean ?? if a method returns a value, to whom is it returned?/?


Thnks,
Piya
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

There's an explanation at Sun's tutorial. Are you using a book to learn ?


[My Blog]
All roads lead to JavaRanch
Joseph Tsui
Greenhorn

Joined: Jan 05, 2002
Posts: 6
the value will be return to the program that trigger this method.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
Here the otherMethod method calls the method method in the Foo class and the i + j + k is sent back to otherMethod where it says int i =.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: return????
 
Similar Threads
Stopping Execution of jsp when particular condition exists
WA #1.....word association
returning an array
To break the execution in a JSP page?
Comparable interface