Literals
Literals represent strings, numbers, Boolean values, and the null value.
String |
Enclosed with single or double quotes. A quote of the same type within the string must be escaped with backslash: \' in a string enclosed with single quotes, \” in a string enclosed with double quotes. The backslash character must be escaped as \\ in both cases. |
Integer |
An optional sign ( |
Floating point |
The same as an Integer literal, except that a dot is used as the
separator for the fractional part and that an exponent can be
specified as |
Boolean |
|
Null |
null. |
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.