The ________ reference data type in Java is immutable and stores a sequence of characters.

  • String
  • StringBuilder
  • List
  • Array
The String class in Java is an immutable reference data type that stores a sequence of characters. Being immutable means that once a String object is created, its content cannot be changed. Understanding the immutability of strings is crucial for efficient string manipulation in Java.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *