wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Dan Watch "Dan New topic
Author

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.
Thanks


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......
suppose,


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

thanx
amit
Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Thanks Amit..for that nice and concise explanation.
 
Consider Paul's rocket mass heater.
 
subject: Dan's GC Question Doubt
 
Similar Threads
Que regarding Dan's Exam
Dan's Q doubt again?
Dan's exam nested class
Garbage collection
Dan's Exam Array Doubt