This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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
It's not a secret anymore!