Which of the following is a mutable class in java?
Check your spam folder if password reset mail not showing in inbox????
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
java.lang.String java.lang.Byte java.lang.Short java.lang.StringBuilder Answer: (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 mutRead more
Answer: (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.
The String, Byte, and Short are immutable classes as they cannot be altered once they are created.
Hence, the correct answer is option (d).
See less