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
worst case complexities of Quick sort and Merge sort.
What does n mean in java?
What is serialization in java?
What is a dot notation?
What is the do while loop syntax?
Describe what a thread-local variable is in java?
Are arrays primitive data types?
What are scalar data types?
What is the difference between variable & constant?
Can I use % with real numbers?
What is thread pool? How can we create thread pool in java?
Is namespace same as package in java?
what invokes a threads run() method? : Java thread
Do I need to import java.lang package any time? Why?
What are predefined functions?