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
List two java ide’s?
Why are arrays useful in java?
What does sizeof return?
What is difference between calling start() and run() method of thread?
Why generics are used in java?
What is local variable and instance variable?
What is nested top-level class?
How objects of a class are created if no constructor is defined in the class?
Garbage collection in java?
Can we declare an array without size in java?
Why isn’t there operator overloading?
Differences between C and Java?
How do you execute a thread in java?
How listener identify that the event came from a particular object?
Difference between ‘>>’ and ‘>>>’ operators in java?