+ 1
What is a string
5 ответов
+ 8
It's a sequence of characters and also a immutable object means you can not modify it.
An array of characters works same as Java string.
Example:-
char[] ch={'j','a','v','a','t','p','o','i','n','t'};
String s=new String(ch);
is same as
String s = "javatpoint";
+ 3
String is a text object.
Often represented as sequence of characters between a pair of " " or ' '.
+ 1
it's a word or sentence