CHAPTER 34B—Object Parameters

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to home page   go to next page

created: 10/9/99; revised: 10/24/99, 01/22/00, 01/28/06, 04/15/07

CHAPTER 34B—Object Parameters

Parameters are used to pass values from a caller into a method. This chapter examines parameters that are object references.

Chapter Topics:

  • Review of parameters
  • Call by value with primitive data types
  • Object references as parameters
  • Immutable objects as parameters
  • Changeable objects as parameters

QUESTION 1:

(Review:) What is a formal parameter?

What is an actual parameter?