Java Certifications
www.javacertifications.com
 home  scjp1.5  scjp1.6  scwcd 1.5  scjp 1.5 questions  scjp 1.6 questions  scwcd 1.5 questions  scjp 1.5 success kit  scjp 1.6 success kit  
  JavaCertifications.net provides java certfication tutorials and mock questions.  


Bookmark and Share |||     Share   
805 scjp 1.6 questions with explanations ||| 788 scjp 1.5 questions with explanations ||| 650 SCWCD 5.0 questions with explanations

Mock Questions

  scjp 1.5

  • Declarations, Initialization & Scoping
  • Method overriding or overloading
  • Inner Classes
  • Flow Control
  • Type Safe Enum
  • Enhanced for loop
  • Assertions
  • Exception
  • API Contents autoboxing & unboxing
  • File
  • Serializable
  • java.text and Locale
  • Regular Expression
  • Collections and Generics
  • Thread and Concurrency

  •   scjp 1.6

  • Declarations, Initialization & Scoping
  • Method overriding or overloading
  • Inner Classes
  • Flow Control
  • Type Safe Enum
  • Enhanced for loop
  • Assertions
  • Exception
  • API Contents autoboxing & unboxing
  • File
  • Serializable
  • java.text and Locale
  • Regular Expression
  • Collections and Generics
  • Thread and Concurrency
  • NavigableMap
  • NavigableSet
  • java.io.Console

  •   scwcd 1.5

  • Servlet Basic
  • The Structure and Deployment of Web Applications
  • The Web Container Model
  • Servlet event listeners
  • Session Management,session listeners
  • Servlet Filter
  • Web Application Security
  • j2ee patterns
  • JSP Directives
  • JSP page life cycle
  • JSP implicit objects
  • JSP include
  • Expression Language (EL)
  • JSTL
  • Building a Custom Tag Library
  • SCWCD : JSP page life cycle Mock Exam Practice Questions

    Questions no -1 
    After translation of a JSP source page into its implementation class, The jsp implementation class is ________ ?
    
    
    options A)final B)static C)abstract D)private Correct answer is : A Explanations : After translation JSP page looks like : public final class test_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { ... }
    Questions no -2
    
    What is the output of the below test.jsp ?
    
    //test.jsp
    
    
    <%!
     public void _jspService(HttpServletRequest request, HttpServletResponse response)
            throws java.io.IOException, ServletException {
    
    	out.println("Hello");
    
       
    }
    
    %>
    
    options A)Hello B)Compile Error - _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) is already defined in org.apache.jsp.test_jsp C)Runtime exception D)None of the above Correct answer is : D Explanations : After translation JSP page _jspService automatically created by JSP compiler. In the JSP page if you define method name _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) then compiler will complain _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) is already defined in org.apache.jsp.test_jsp.
    scjp 1.5 | scjp 1.6 | scwcd 1.5
    Java Certifications
    www.javacertifications.net