Answer Posted / rajender
yes
we should do in jsp declarative tag only.if we specify
variables in declaration tag, it belongs to class.
<%! static int i=0; %>
and u can not define static variable in scriptlet(<% %>).
as we know that we can not declare a static variable in a
method.
| Is This Answer Correct ? | 42 Yes | 5 No |
Post New Answer View All Answers
How do you write a scanner class in java?
Why is java so popular?
List some important features of java 10 release?
What does opcode mean?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
What is a marker interface?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is difference overloading and overriding?
What does sprintf mean?
What is difference between next () and nextline () in java?
What are the two types of streams offered by java 8?
What is the difference between equals() and == in java?
What are the two types of java programming?
What is a parameter in java?
What does bitwise or mean?