Can we declare static variables in JSP page.

Answer Posted / srinu

yes we declare the varible as static in a jsp.we declare the
static varible in the declaration tag.
ex:-
<%! static int a=10;%>

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sortedset in java?

567


What are assembly attributes?

539


What are the methods used to implement for the key object in the hash map?

561


How can we make string upper case or lower case?

594


What is the purpose of the system class in java programming?

539






Is java map thread safe?

486


What initialize variables?

502


How a string is stored in memory?

572


What is java regex?

528


Why do we use predicate in java?

549


What is a vector in java?

573


Is there any difference between nested classes and inner classes?

533


What is the use of keywords in java?

551


What is array command?

553


What is difference between next () and nextline () in java?

532