Anonymous

What Is String Means In Java?

2

2 Answers

Broad Kenny Profile
Broad Kenny answered

Strings could be considered a primitive type in Java, but in fact they are not. As a string is actually
made up of an array of char primitives. In other words, if you create the String “Hello World” like so:

String hellovar = "Hello World";


Chris Tackett Profile
Chris Tackett answered

The string class represents character strings. All
string literals in Java programs, such as "abc", are
implemented as instances of this class.

Strings are constant; their values cannot be changed after they
are created. String buffers support mutable strings.
Because String objects are immutable they can be shared.

Answer Question

Anonymous