Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

List two java ide’s?

1043


Why are arrays useful in java?

1027


What does sizeof return?

985


What is difference between calling start() and run() method of thread?

1125


Why generics are used in java?

1037


What is local variable and instance variable?

1052


What is nested top-level class?

1033


How objects of a class are created if no constructor is defined in the class?

1066


Garbage collection in java?

1014


Can we declare an array without size in java?

994


Why isn’t there operator overloading?

1068


Differences between C and Java?

1192


How do you execute a thread in java?

952


How listener identify that the event came from a particular object?

1994


Difference between ‘>>’ and ‘>>>’ operators in java?

1122