aspose file tools*
The moose likes Beginning Java and the fly likes help in return type 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 "help in return type" Watch "help in return type" New topic
Author

help in return type

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141







Q; my dought is in preceding code whether the bits of return value x(i.e x value is 6)stored in result variable or square value stored in result variale?

[edit]Add code tags. CR[/edit]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39415
    
  28
Please always use the CODE button; I have edited your post so you can see how much better it looks.

I don't really understand your question. I suggest you go through the execution of that code by writing down the values on paper. Then tell us what conclusion you have drawn.

Good luck with it
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874



Q; my dought is in preceding code whether the bits of return value x(i.e x value is 6)stored in result variable or square value stored in result variale?


Please rewrite the question. not able to understand !!


Here obj2.square calls the square method (class Two) , calculates the square value and returns the result which is stored in a local varibale result (class Relate)
 
wood burning stoves
 
subject: help in return type