Important Java Mcq 1

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) java.lang.StringBuilder

Related MCQs

Read only variables in java

a) Can be modified at runtime in non static constructor only. b) Can be modified from both method and constructor. c) Can never be modified as it behave

Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?