Title: Parameters References (JPHP)
Course: CPS 161: An Intro to Programming with Java - DL MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Parameters References (JPHP) lecture video (Time: 00:00)
- Parameters References (JPHP) document

- References (addresses) are used for classes
- Parameter passing to methods
- primitives (int, char, double, etc.) are passed as a copy
- Mutable classes(Most normal classes) passed by reference and can be changed
- Immutable classes (String, Integer, Double, other wrapper classes) passed by reference but can't be changed
- null - the keyword for the special "undefined" reference
- Side effects of passing Mutable classes and the use of "Copy-Constructors"