Which of the following is a mutable class in java?
A. java.lang.String
B. java.lang.Byte
C. java.lang.Short
D. java.lang.StringBuilder
Answer:D
Which of the following is a mutable class in java?
A. java.lang.String B. java.lang.Byte C. java.lang.Short D. java.lang.StringBuilder
Explanation: A mutable class is a class in which changes can be made after its creation. We can modify the internal state and fields of a mutable class. The StringBuilder class is a mutable class, as it can be altered after it is created.