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

Is java a virus?

713


What is a local class in java?

774


What is default locale java?

772


What is the advantage of OOP in java?

872


What is a priority queue java?

701


Can a function return a function?

759


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

800


What is not thread safe?

728


Explain where variables are created in memory?

760


Differences between external iteration and internal iteration?

842


What is unicode used for?

802


How do generics work?

702


Is there any tag in htm to upload and download files?

799


What is int short for?

710


Can we override protected method in java?

788