0% found this document useful (0 votes)
13 views1 page

JSP Operators

JSP supports all Java logical and arithmetic operators in expressions. Operators are grouped into categories based on precedence, with postfix, unary, and multiplicative operators evaluated first. The JSP expression language defines boolean, integer, floating point, string, and null literals, similar to their Java counterparts. Strings can be delimited by single or double quotes and support escaping special characters with backslash.

Uploaded by

Nur Kholis Majid
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

JSP Operators

JSP supports all Java logical and arithmetic operators in expressions. Operators are grouped into categories based on precedence, with postfix, unary, and multiplicative operators evaluated first. The JSP expression language defines boolean, integer, floating point, string, and null literals, similar to their Java counterparts. Strings can be delimited by single or double quotes and support escaping special characters with backslash.

Uploaded by

Nur Kholis Majid
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

JSP Operators:

JSP supports all the logical and arithmatic operators supported by Java. Following table give a list of all the operators with the highest precedence appear at the top of the table, those with the lowest appear at the bottom. Within an expression, higher precedenace operators will be evaluated first. Category Postfix Unary Multiplicative Additive Shift Relational Equality Bitwise AND Bitwise XOR Bitwise OR Logical AND Logical OR Conditional Assignment Comma () [] . (dot operator) ++ - - ! ~ */% +>> >>> << > >= < <= == != & ^ | && || ?: = += -= *= /= %= >>= <<= &= ^= |= , Operator Associativity Left to right Right to left Left to right Left to right Left to right Left to right Left to right Left to right Left to right Left to right Left to right Left to right Right to left Right to left Left to right

JSP Literals:
The JSP expression language defines the following literals:

Boolean: true and false Integer: as in Java Floating point: as in Java String: with single and double quotes; " is escaped as \", ' is escaped as \', and \ is escaped as \\. Null: null

You might also like