A String literal is assigned to a String variable.
3 Likes
True
Reason — The data type of the variable that can hold a String literal should also be String.
Answered By
1 Like
The data types int, float, char are called non-primitive data types.
A character literal is always enclosed in double quotes.
String constant can be written by using a set of alphanumeric characters.