All Subjects
Light
AP Computer Science A
'String result' is a variable declaration that creates a reference to a String object and gives it the name "result". This allows us to store the return value of the 'capitalize' method in the 'result' variable.
A statement that defines a variable's type and name.
A variable that holds a memory address (reference) rather than directly containing the data itself.
In programming, every variable has a specific data type indicating what kind of value it can hold. In this case, the data type is 'String'.