Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Bear Bibeault
Henry Wong
Devaka Cooray
Saloon Keepers:
salvin francis
Tim Moores
Tim Holloway
Stephan van Hulst
Frits Walraven
Bartenders:
Jj Roberts
Carey Brown
Scott Selikoff
Forum:
Beginning Java
return????
mansi gupte
Ranch Hand
Posts: 72
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What does return mean ?? if a method returns a value, to whom is it returned?/?
Thnks,
Piya
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 6
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
the value will be return to the program that trigger this method.
Campbell Ritchie
Marshal
Posts: 72084
312
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
public class Foo { . . . public int method() { return i + j + k; } . . . }
public class Baa { private Foo fff; . . . public void otherMethod(String s) { . . . int i = fff.method(); } . . . }
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 =.
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Doubt: equals() & hashcode() method
I Reviewed Head First Java
Please exlain this code
hashCode()????
Doubt in Exception Handling.
More...