What are Declarations?


Declarations are similar to variable declarations in Java. Declarations are used to declare variables for subsequent use in expressions or scriptlets. To add a declaration, you must use the sequences to enclose your declarations.

Sample code is added below to show the JSP declarations.


<%! int j = 0; %> 
<%! int d, e, f; %> 
<%! Shape a = new Shape(); %> 
0 answers