aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes I am still confused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "I am still confused" Watch "I am still confused" New topic
Author

I am still confused

Md.Afzalur Rashid
Ranch Hand

Joined: Oct 29, 2002
Posts: 47
I think the object(x) passed to the method is reffered to the object N.So the result should be 31.


Be Confident,be trusty,Count your age by friends not by years
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Originally posted by Md.Afzalur Rashid:
I think the object(x) passed to the method is reffered to the object N.So the result should be 31.

Yes but then N is pointed to a brand new object. X is still pointing to the original object.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am still confused