159k views
1 vote
For an alternative to the String class, and so that you can change a String's contents, you can use_________ .

a. char.
b. StringHolder.
c. StringBuilder.
d. StringMerger.

User HMZ
by
4.3k points

1 Answer

4 votes

Answer:

c. StringBuilder

Step-by-step explanation:

An alternative to the String class would be the StringBuilder Class. This class uses Strings as objects and allows you to mix and match different strings as well as adding, removing, implementing, and modifying strings themselves as though they were similar to an array. Unlike the string class StringBuilder allows you to modify and work with a combination of strings in the same piece of data as opposed to having various objects and copying pieces which would take up more memory.

User Snehal S
by
4.5k points