cool hit counter
Cafe4Java
Cafe4Java
 

SCWCD Mock Exam
Q2)
Which of the following JSPs correctly defines the init method, which is invoked by the servlet container, when it first executes the JSP?
  • A)
    <%-- Cafe4Java.jsp --%>
    <%!
    public void _jspInit() {
    	System.out.println ("Cafe4Java");
    }
    %>
    
  • B)
    <%-- Cafe4Java.jsp --%>
    <%!
    public void jspInit() {
    	System.out.println ("Cafe4Java");
    }
    %>
    
  • C)
    <%-- Cafe4Java.jsp --%>
    <%
    public void _jspInit() {
    	System.out.println ("Cafe4Java");
    }
    %>
    
  • D)
    <%-- Cafe4Java.jsp --%>
    <%
    public void jspInit() {
    	System.out.println ("Cafe4Java");
    }
    %>
    
Answer to Q2


    <<<< Back to Q1 <<<<         >>>> Go to Q3 >>>>

Submit your feedback on this mock exam