Question: Question: Which of the following statements about Java's String class is TRUE? A ) Strings in Java are mutable, allowing their content to be changed.

Question: Which of the following statements about Java's String class is TRUE?

A ) Strings in Java are mutable, allowing their content to be changed.
B ) Strings are stored in a pool for optimization and can be shared.
C ) The String class is a subclass of java.lang.Object and can be extended.
D ) The String class does not support character arrays as input for creation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below The correct option is B Strings are stored in a pool for optimization and can be shared R... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!

Related Book