300+ free video programming tutorials ― Learn for free!

Java Tutorial - #17 - Pass by Reference

Category: Java - Author: Karl Hadwen

Home > Java > Java Tutorial - #17 - Pass by Reference

Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge

Remember, Java is pass by value! Although, we can be tricky and use references in Java (not pointers...). Everything in Java is passed by value although arrays are objects, and of course objects are objects...Something to note is that objects (arrays & objects) are actually passed by reference, although (important) that reference is actually passed by value! Just to confirm: the reference is passed by value because a copy of the reference value is created and then it gets passed into another object.

It's a little confusing so if you're having trouble just drop me a message!

Want to stay up to date with commonly asked questions & answers, or how about a monthly digest of useful resources that I've found online? Go ahead and sign up to the Cognitive Surge community mailing list here: http://eepurl.com/bG93vz

Like the Cognitive Surge Facebook page

Follow me on Twitter (Feel free to tweet me questions!)