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
What is the major drawback of internal iteration over external iteration?
Explain abstract class in java?
What is the size of a string in java?
Explain the use of volatile field modifier?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Tell me the Importent classes in net package?
What is a bubble sort in java?
How use .contains in java?
Explain the selection sort algorithm?
What does flag mean in java?
Can we overload run() method in java?
Can a class have multiple superclasses?
What are the steps involved to create a bean?
What is constructor chaining and how is it achieved in java?
How can we create objects if we make the constructor private ?