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
  • SCJP : Assertions Mock Exam Practice Questions

    Questions no -1
    
    What is the output for the below code ?
    
    public class Test {
    	
    	public static void main(String... args) {
    		for(int i = 2; i < 4; i++)
      for(int j = 2; j < 4; j++)
         assert i!=j : i; 
    
    
    	}
    }
    options A)The class compiles and runs, but does not print anything. B)The number 2 gets printed with AssertionError C)The number 3 gets printed with AssertionError D)compile error Correct answer is : B Explanations : When i and j are both 2, assert condition is false, and AssertionError gets generated.
    Questions no -2
    
    What is the output for the below code ?
    
    public class Test {
    	
    	public static void main(String... args) {
    		for(int i = 2; i < 4; i++)
      for(int j = 2; j < 4; j++)
    	if(i < j)
         assert i!=j : i; 
    
    
    	}
    }
    options A)The class compiles and runs, but does not print anything. B)The number 2 gets printed with AssertionError C)The number 3 gets printed with AssertionError D)compile error Correct answer is : A Explanations : When if condition returns true, the assert statement also returns true. Hence AssertionError not generated.
    scjp 1.5 | scjp 1.6 | scwcd 1.5
    Java Certifications
    www.javacertifications.net