Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
'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.