File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Dan's GC Question Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Dan Watch "Dan New topic

Dan's GC Question Doubt

Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Hi friends,
I've this doubt with Dan's G.C question:

My Question,Why doesn't "ba" value refer to the same object as "b"??? Is it because its a
"pass_by_value",but dont we use "pass_by_reference" in case of objects.Please help me guys.

SCJP 1.4 (88%)<br />SCWCD 1.4 (88%)
Amit Das
Ranch Hand

Joined: Mar 05, 2005
Posts: 206
In Java we dont have pass-by-reference at all......

i hope this is clear enough.....if not, feel free to get back

Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Thanks Amit..for that nice and concise explanation.
I agree. Here's the link:
subject: Dan's GC Question Doubt