805 OCPJP 6 Questions 788 SCJP 5 questions 650 OCPJWCD 5 questions 600 OCAJP 7 questions 610 OCPJP 7 questions 510 Upgrade to OCPJP 7 questions 900 Java J2EE Qns

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 : JSTL Mock Exam Practice Questions

    What get printed when the following JSTL code fragment is executed?
    
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
    <c:set var="item" value="2"/> 
    <c:forEach var="item" begin="0" end="0" step="2">
    <c:out value="${item}" default="abc"/>
    </c:forEach>
    
    
    options A)0 B)2 C)abc D)4 Correct answer is : A Explanations : forEach tag gets executed once, and prints zero.
    Questions no -2 
    What get printed when the following JSTL code fragment is executed?
    
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
    <c:forEach var="item" begin="0" end="12" step="3"> 
    ${item} 
    </c:forEach> 
    
    
    options A)0,3,6,9,12 B)3,6,9,12 C)0,6,9,12 D)0,3,6,9 Correct answer is : A Explanations : start from 0 to end 12 and step is 3 so 0,3,6,9,12 printed.
    scjp 1.5 | scjp 1.6 | scwcd 1.5
    Java Certifications
    www.javacertifications.net