Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pass by Reference in Java.

807598Feb 3 2006 — edited Jan 20 2009
Hi ,

I wanted to understand the concept of pass by reference in java.
Whether the
1. primitives (eg int, char) are pass by value and
2. Java Wrapper classes (eg Integer,Character) and other Java class objects created are pass by reference.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2009
Added on Feb 3 2006
70 comments
699 views