+ 6
Can someone please explain the entire meaning of a string function?
5 ответов
+ 3
Hi @Iwan,
String is not a function. String is a data type, this means that some data of type string is an abstract representation of a the text in your program.
For example, if I want to ask the name of the user, I should store the name in a variable of type "string".
An example in Java:
String name = "Iwan";
System.out.println(name);
Outputs:
Iwan
+ 5
string is "Object" in java 😑
+ 3
string isn't a function. It is a datatype. String is nothing but a collection of characters. It is a data type in few of the programing languages and it isn't a datatype in language like C.
+ 3
A 'String' is simply an array of characters.
A word or a sentence is a String.
One letter or symbol is a 'char'.
+ 2
String is a....class....