revised: 10/09/98, 09/04/99, 01/20/00, 01/18/06

CHAPTER 28 — Parameters in Method Calls

An object contains both variables and methods. Often when you use a method, you supply it with some information in the form of parameters. This chapter discusses method calls and parameters.

Chapter Topics:

QUESTION 1:

After the following statements have executed,

String str = new String("alphabet soup");
int    len = str.length();

what value is in the variable len?