string literal java code example
Example 1: literals in java
Literals are number, text, or anything that represent a value.
In other words, Literals in Java are the constant values
assigned to the variable.
It is also called as constants........
Example 2: string in java
In java, string is an object. It is sequence of character values enclosed by
double quotes.