Write a program to sort an given array and remove duplicates in it with out using java API and print the sort order and the number of occurrence of duplicates.
Why DB connections are not written directly in JSPs ?(a) Response is slow (b) Not a standard J2EE architecture (c) Load Balancing is not possible (d) All the above (e) Both (b) and (c)
What exception is thrown when Servlet initialization fails ?(a) IOException (b) ServletException (c) RemoteException
(b)
EJB class should implement (a) javax.ejb.EntityBean (b) javax.ejb.rmi (c) javax.ejb.EJBHome (d) javax.ejb.EJBObject
At what stage, the life cycle of a CMP bean can be assumed to be started ?(a) before ejbCreate() method is executed (b) after ejbCreate() method is executed (c) in postCreate() method (d) after executing ejbStore()
Although it is not commonly done, what will you do if you want to have multiple instances of Servlet in memory and if they have to share the execution of a user request ? (a) Defnie Single Thread model (b) Cannot be done
Which of the following is true ?(a) Unlimited data transfer can be done using POST method (b) Data is visible in Browser URL when using POST method (c) When large amounts of data transfer is to be done, GET method is used.
(a)
How can a Servlet call a JSP error page ?(a) This capability is not supported. (b) When the servlet throws the exception, it will automatically be caught by the calling JSP page. (c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException". (d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.
(c)
What is the key difference between using a and HttpServletResponse.sendRedirect()?(a) forward executes on the client while sendRedirect() executes on the server. (b) forward executes on the server while sendRedirect() executes on the client. (c) The two methods perform identically.
(b)
View page [1] 2 3 Next >>

Go Top