String Data Type

The string data type is not a primitive type but we will discuss it briefly here since it does behave like a Primitive Data Type.

The string literal is enclosed in double quotes("").

//Note the capital S on the string data type.
String username = "joseph";

More Examples

String correctAnswerOption = "A"; //Note the double quotes("")
String email = "[email protected]";
String fullName = "Joseph Kandi";

results matching ""

    No results matching ""