String
literalsnull
valueString
classString
concatenationString
s are immutableString
methods
In previous chapters,
methods were called with parameters
that were primitive data types.
This chapter discusses how to use object references
as parameters.
The class String
is used in many examples.
Students taking the computer science Advanced Placement examination
are expected to be familiar with the String
class.
(Review:) What TWO things does the following statement do?
String zeta = new String( "The last rose of summer" );