Asked by Peter Manyang Bichok on Jul 13, 2024

verifed

Verified

You can use the class String to pass strings as parameters to a method and change the actual parameter.

Class String

A class in Java that is used to create and manipulate a sequence of characters.

Actual Parameter

The specific value provided to a function or a method when it is called, serving as input to execute the function.

  • Differentiate between actual and formal parameters in method calls.
verifed

Verified Answer

DE
Deena El HasanJul 15, 2024
Final Answer :
False
Explanation :
In Java, strings are immutable, meaning once a String object is created, its value cannot be changed. Passing a String to a method doesn't allow the method to alter the original object. Any changes result in a new String object.