Can we declare static variables in JSP page.

Answer Posted / vijayakumar chinnasamy

In Declaration tag (<%! -- %>), you can able declare the
static variable,class, define methods.

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are JVM.JRE, J2EE, JNI?

867


When should I use singleton pattern?

786


What are packages in java?

854


What are the differences between heap and stack memory in java?

747


Can we use string in switch case in java?

781


What are different types of inner classes ?

756


Is null in java?

731


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

756


What are the advantages of unicode?

762


What super () does in java?

653


what happens when a thread cannot acquire a lock on an object? : Java thread

783


Can we use synchronized block for primitives?

802


What happens if an exception is throws from an object's constructor?

846


Write a program to find maximum and minimum number in array?

740


Explain the use of shift operator in java. Can you give some examples?

715