Which is a true statement for object of String class?

Which is a true statement for object of String class?
A. Object are immutable
B. Object are mutable
C. Object are created only once
D. Object can’t be created
 
Answer: a
Explanation: The object of string class are mostly immutable. This means that the String objects are constant. These can’t be changed once created.
 

Tìm kiếm

Back
Top