String

The String data type represents a sequence of characters, and it is widely used to store and manipulate text in Java.

String name = "John Doe";
String greeting = "Hello, World!";

Is not a primitive data type but a class in Java. However, it behaves similarly to primitive types due to Java's special handling.

Strings are immutable in Java, meaning that once created, their values cannot be changed. However, you can perform various operations on strings using methods provided by the String class.

String — Structure map

Clickable & Draggable!

String — Related pages: