9may


1)       Stuts populate a form in struts 1.1?
a.        By overriding populate bean method of Action Mapping.
b.        By overriding populate method of Action Form
c.        By overriding process populate method of Request process
d.        All the above
2)       <html><body>The value of <%=” “%>…what will print
3)       Some static data is available for entire application what to do

a.        create a singleton object to share the data
b.        create the application object to share the data
c.        use some caching mechanisms
d.        All of the above

4)       public class test{
a.        int i=1,j=1;
b.        try{
c.        i++;
d.        j--;
e.        if(i/j>1)
f.         i++
g.        catch(ArithmeticException e)
h.        s.o.p(0);
i.         }
j.         Catch(ArrayIndexoutofBoundsexception e)
k.        s.o.p(1)
l.         }
m.      Catch(Exception e)
n.        s.o.p(2)
o.        }
p.        finally{
q.        s.o.p(3)
r.         }
s.        s.o.p(4)




5)       10 not null values 5 null values what will give count(name)
6)       true about transient modifier
7)      <bean:write> what this tag will do
8)      Difference Between <%@Include %> and <jsp=include>
9)      int i=o;
Boolean b = false
If(b&&(i++>0))
{
empty
}
System.out.println(i);
10)  Inner join operation will give all the values in the first table even though there are no matching data between two tables. True or false?
11)  What does driverManager do?
12)    difference between shallow copy and deep copy?
13)    which are all the valid methods in jsp??

    a) -JSPInit()
       _JSPService()
       _JspDestroy()

    b) _JSPInit()
       _JSPService()

    c)  -JSPInit()
       _JSPService()
       _JspDestroy()
       _JSPdodelete()
       _JSPdoget()
       _JSPdopost()
14)    What are true about constructors:
a)    They can be overloaded.
b)    They can be overridden as they are not inherited.
c)    They cant be overridden as they  are not inherited
d)    They can both be overridden and overloaded.
15)     What is the valid child of the root <web-apps> in the deployment descriptor?
a. <servlet-mapping>
b. <context-mapping>
c. <mime-mapping>
d. <url-pattern>