Training topic: OCPJP (Oracle certified professional Java programmer) or SCJP (Sun certified Java programmer) Content and Objectives

Similar documents
Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

Java SE 8 Programmer I and II Syballus( Paper codes : 1z0-808 & 1z0-809)

Java Programming Course Overview. Duration: 35 hours. Price: $900

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

1Z Java SE 7 Programmer II Exam Summary Syllabus Questions

6978AppA 4/27/06 9:24 AM Page 315 P A R T 4 Appendixes

Certification In Java Language Course Course Content

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7)

Java Programming Training for Experienced Programmers (5 Days)

Core Java Contents. Duration: 25 Hours (1 Month)

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Index COPYRIGHTED MATERIAL

Course Description. Learn To: : Intro to JAVA SE7 and Programming using JAVA SE7. Course Outline ::

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Core Java Syllabus. Overview

CO Java SE 8: Fundamentals

The Sun s Java Certification and its Possible Role in the Joint Teaching Material

JAVA. Duration: 2 Months

Become Java Certified

Introduction to Programming Using Java (98-388)

A- Core Java Audience Prerequisites Approach Objectives 1. Introduction

Java SE 7 Programming

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

WA1278 Introduction to Java Using Eclipse

Course Outline. [ORACLE PRESS] Kathy Sierra s & Bert Bates OCA/OCP Java 7 Programmer Course for Exam 1Z0-803 and 1Z

Java SE 8 Programming

Java SE 7 Programming

Object-Oriented Programming in the Java language

15CS45 : OBJECT ORIENTED CONCEPTS

F1 A Java program. Ch 1 in PPIJ. Introduction to the course. The computer and its workings The algorithm concept

Java SE 8 Programming

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

"Charting the Course... Java Programming Language. Course Summary

The Java Tutorial. A Short Course on the Basics. Raymond Gallardo. Sowmya Kannan. AAddison-Wesley. Sharon Biocca Zakhour.

Java SE7 Fundamentals

JAVA. 1. Introduction to JAVA

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Chapter 5 Object-Oriented Programming

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

Complete Java Contents

Java 8 Programming for OO Experienced Developers

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

Object Oriented Programming CS104 LTPC:

1 Shyam sir JAVA Notes

Mathematics/Science Department Kirkwood Community College. Course Syllabus. Computer Science CSC142 1/10

104. Intermediate Java Programming

Page 1

Java Training JAVA. Introduction of Java

Fast Track to Core Java 8 Programming for OO Developers (TT2101-J8) Day(s): 3. Course Code: GK1965. Overview

Java Programming. Price $ (inc GST)

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

Peers Techno log ies Pv t. L td. Core Java & Core Java &Adv Adv Java Java

Learn Java/J2EE Basic to Advance level by Swadeep Mohanty

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE

GUJARAT TECHNOLOGICAL UNIVERSITY

JVA-103. Java Programming

Core JAVA Training Syllabus FEE: RS. 8000/-

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

Index. Index. More information. block statements 66 y 107 Boolean 107 break 55, 68 built-in types 107

Chapter 4 Java Language Fundamentals

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

Active Learning: Streams

Java SE 8 Programming

Contents Chapter 1 Introduction to Programming and the Java Language

Language Features. 1. The primitive types int, double, and boolean are part of the AP

1 OBJECT-ORIENTED PROGRAMMING 1


5/23/2015. Core Java Syllabus. VikRam ShaRma

JAVA MOCK TEST JAVA MOCK TEST IV

Introduction. Assessment Test. Part I The Programmer s Exam 1

String temp [] = {"a", "b", "c"}; where temp[] is String array.

ΠΙΝΑΚΑΣ ΠΛΑΝΟΥ ΕΚΠΑΙΔΕΥΣΗΣ

A Quick Tour p. 1 Getting Started p. 1 Variables p. 3 Comments in Code p. 6 Named Constants p. 6 Unicode Characters p. 8 Flow of Control p.

Points To Remember for SCJP

1/16/2013. Program Structure. Language Basics. Selection/Iteration Statements. Useful Java Classes. Text/File Input and Output.

Compaq Interview Questions And Answers

WOSO Source Code (Java)

Core Java Syllabus DAY -1 :

MCSA Universal Windows Platform. A Success Guide to Prepare- Programming in C# edusum.com

FOR BEGINNERS 3 MONTHS

1Z Java SE 5 and 6, Certified Associate Exam Summary Syllabus Questions

Murach s Beginning Java with Eclipse


PESIT Bangalore South Campus

Cracking the New Sun Certified Programmer for Java 2 Platform 1.5 Exam

This page intentionally left blank

ABOUT CORE JAVA COURSE SCOPE:

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

Introduction IS

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

PGJC4_JSE8_OCA.book Page 619 Monday, June 20, :31 PM. Index. Symbols

This page intentionally left blank

LTBP INDUSTRIAL TRAINING INSTITUTE

CS 251 Intermediate Programming Java I/O Streams

Java SE 7 Programming Volume I Student Guide

Java Interview Questions

Internet Application Developer

Input, Output and Exceptions. COMS W1007 Introduction to Computer Science. Christopher Conway 24 June 2003

Transcription:

Training topic: OCPJP (Oracle certified professional Java programmer) or SCJP (Sun certified Java programmer) Content and Objectives 1

Table of content TABLE OF CONTENT... 2 1. ABOUT OCPJP SCJP... 4 2. CONCERNED PUBLIC... 4 3. SKILL IMPROVEMENT... 4 4. TRAINING... 4 5. CONTENT AND OBJECTIVES... 4 5.1 Declaration and access control... 4 5.1.1 Identifiers & JavaBeans (Objectives 1.3 and 1.4)... 4 5.1.2 Declare Classes (Exam Objective 1.1)... 4 5.1.3 Declare Interfaces (Exam Objectives 1.1 and 1.2)... 5 5.1.4 Declare Class Members (Objectives 1.3 and 1.4)... 5 5.2 Object orientation... 5 5.2.1 Encapsulation (Exam Objective 5.1)... 5 5.2.2 Inheritance, Is-A, Has-A (Exam Objective 5.5)... 5 5.2.3 Polymorphism (Exam Objective 5.2)... 5 5.2.4 Overriding / Overloading (Exam Objectives 1.5 and 5.4)... 5 5.2.5 Reference Variable Casting (Objective 5.2)... 5 5.2.6 Implementing an Interface (Exam Objective 1.2)... 6 5.2.7 Legal Return Types (Exam Objective 1.5)... 6 5.2.8 Constructors and Instantiation (Exam Objectives 1.6, 5.3, and 5.4)... 6 5.2.9 Statics (Exam Objective 1.3)... 6 5.2.10 Coupling and Cohesion (Exam Objective 5.1)... 6 5.3 Assignments... 6 5.3.1 Literals, Assignments, and Variables (Exam Objectives 1.3 and 7.6)... 6 5.3.2 Passing Variables into Methods (Objective 7.3)... 6 5.3.3 Array Declaration, Construction, and Initialization (Exam Objective 1.3)... 6 5.3.4 Using Wrapper Classes and Boxing (Exam Objective 3.1)... 7 5.3.5 Overloading (Exam Objectives 1.5 and 5.4)... 7 5.3.6 Garbage Collection (Exam Objective 7.4)... 7 5.4 Operators... 7 5.4.1 Java Operators (Exam Objective 7.6)... 7 5.5 Flow control, Exceptions and Assertions... 7 5.5.1 if and switch Statements (Exam Objective 2.1)... 7 5.5.2 Loops and Iterators (Exam Objective 2.2)... 7 5.5.3 Handling Exceptions (Exam Objectives 2.4 and 2.5)... 7 5.5.4 Common Exceptions and Errors (Exam Objective 2.6)... 7 5.5.5 Working with the Assertion Mechanism (Exam Objective 2.3)... 8 5.6 String, IO, Formatting and parsing... 8 5.6.1 String, StringBuilder, and StringBuffer (Exam Objective 3.1)... 8 5.6.2 File Navigation and I/O (Exam Objective 3.2)... 8 5.6.3 Serialization (Exam Objective 3.3)... 8 5.6.4 Dates, Numbers, and Currency (Exam Objective 3.4)... 8 5.6.5 Parsing, Tokenizing, and Formatting (Exam Objective 3.5)... 8 5.7 Generics and collections... 9 5.7.1 Overriding hashcode() and equals() (Objective 6.2)... 9 2

5.7.2 Collections (Exam Objective 6.1)... 9 5.7.3 Using the Collections Framework (Objectives 6.3 and 6.5)... 9 5.7.4 Generic Types (Objectives 6.3 and 6.4)... 9 5.8 Inner Classes... 9 5.8.1 Inner Classes... 9 5.8.2 Method-Local Inner Classes... 9 5.8.3 Anonymous Inner Classes... 9 5.8.4 Static Nested Classes... 9 5.9 Threads... 9 5.9.1 Defining, Instantiating, and Starting Threads (Objective 4.1)... 9 5.9.2 Thread States and Transitions (Objective 4.2)... 9 5.9.3 Synchronizing Code (Objective 4.3)... 10 5.9.4 Thread Interaction (Objective 4.4)... 10 5.10 Development... 10 5.10.1 Using the javac and java Commands (Exam Objectives 7.1, 7.2, and 7.5)... 10 5.10.2 JAR Files (Objective 7.5)... 10 5.10.3 Using Static Imports (Exam Objective 7.1)... 10 3

1. About OCPJP SCJP The OCPJP certification program gathers in its objectives all that is critical to have a complete understanding of the Java Language. The OCPJP/SCJP certification is required to be able to access advanced certification exams. Once you have mastered the concepts of OCPJP/SCJP you become a much better developer and you have everything you need to start approaching design patterns and the architecture of softwares. 2. Concerned public To undergo the OCPJP certification training you must have a basic understanding of Java. If you code in Java on a regular basis or occasionally, if you were introduced to Java and have written code as a graduate you can go for this certification even if you forgot some of it (not all of it). 3. Skill improvement Being able to write code and having a full understanding of the Java platform are two different things. The OCPJP/SCJP certification is about increasing your skills to the beginning of what is considered a professional level. This course is dense, the basic topics are numerous and covered throughout, even if you have been writing Java for several years you will learn a lot and your general knowledge in information technology will increase. 4. Training The course is made of 9 chapters each of which contains several certification objectives. At the end of each chapter the trainer will carry mock exams so as to consolidation the knowledge and train for the certification. Small drills will occur also during each chapter. As the chapters are progressively addressed and the amount of information to absorb is becoming bigger the frequency of drills and mock exams will increase. At the beginning of each chapter a rapid summary of the previous chapter(s) will take place. 5. Content and objectives 5.1 Declaration and access control 5.1.1 Identifiers & JavaBeans (Objectives 1.3 and 1.4) Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names. Develop code that declares both static and non-static methods, and if appropriate use method names that adhere to the JavaBeans naming standards. Also develop code that declares and uses a variable-length argument list. 5.1.2 Declare Classes (Exam Objective 1.1) Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports). 4

5.1.3 Declare Interfaces (Exam Objectives 1.1 and 1.2) Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports). Develop code that declares an interface. Develop code that implements or extends one or more interfaces. Develop code that declares an abstract class. Develop code that extends an abstract class. 5.1.4 Declare Class Members (Objectives 1.3 and 1.4) Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names. Develop code that declares both static and non-static methods, and if appropriate use method names that adhere to the JavaBeans naming standards. Also develop code that declares and uses a variable-length argument list. 5.2 Object orientation 5.2.1 Encapsulation (Exam Objective 5.1) Develop code that implements tight encapsulation, loose coupling, and high cohesion in classes, and describe the benefits. 5.2.2 Inheritance, Is-A, Has-A (Exam Objective 5.5) Develop code that implements "is-a" and/or "has-a" relationships. 5.2.3 Polymorphism (Exam Objective 5.2) Given a scenario, develop code that demonstrates the use of polymorphism. Further, determine when casting will be necessary and recognize compiler vs. runtime errors related to object reference casting. 5.2.4 Overriding / Overloading (Exam Objectives 1.5 and 5.4) Given a code example, determine if a method is correctly overriding or overloading another method, and identify legal return values (including covariant returns), for the method. Given a scenario, develop code that declares and/or invokes overridden or overloaded methods and code that declares and/or invokes superclass, overridden, or overloaded constructors. 5.2.5 Reference Variable Casting (Objective 5.2) Given a scenario, develop code that demonstrates the use of polymorphism. Further, determine when casting will be necessary and recognize compiler vs. runtime errors related to object reference casting. 5

5.2.6 Implementing an Interface (Exam Objective 1.2) Develop code that declares an interface... 5.2.7 Legal Return Types (Exam Objective 1.5) Given a code example, determine if a method is correctly overriding or overloading another method, and identify legal return values (including covariant returns), for the method. 5.2.8 Constructors and Instantiation (Exam Objectives 1.6, 5.3, and 5.4) Given a set of classes and superclasses, develop constructors for one or more of the classes. Given a class declaration, determine if a default constructor will be created, and if so, determine the behavior of that constructor. Given a nested or nonnested class listing, write code to instantiate the class. Explain the effect of modifiers on inheritance with respect to constructors, instance or static variables, and instance or static methods. Given a scenario, develop code that declares and/or invokes overridden or overloaded methods and code that declares and/or invokes superclass, overridden, or overloaded constructors. 5.2.9 Statics (Exam Objective 1.3) Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names. 5.2.10 Coupling and Cohesion (Exam Objective 5.1) Develop code that implements tight encapsulation, loose coupling, and high cohesion in classes, and describe the benefits. 5.3 Assignments 5.3.1 Literals, Assignments, and Variables (Exam Objectives 1.3 and 7.6) Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names. Write code that correctly applies the appropriate operators including assignment operators (limited to: =, +=, -=)... 5.3.2 Passing Variables into Methods (Objective 7.3) Determine the effect upon object references and primitive values when they are passed into methods that perform assignments or other modifying operations on the parameters. 5.3.3 Array Declaration, Construction, and Initialization (Exam Objective 1.3) Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names. 6

5.3.4 Using Wrapper Classes and Boxing (Exam Objective 3.1) Develop code that uses the primitive wrapper classes (such as Boolean, Character, Double, Integer, etc.), and/or autoboxing & unboxing. Discuss the differences between the String, StringBuilder, and StringBuffer classes. 5.3.5 Overloading (Exam Objectives 1.5 and 5.4) Given a code example, determine if a method is correctly overriding or overloading another method, and identify legal return values (including covariant returns), for the method. Given a scenario, develop code that declares and/or invokes overridden or overloaded methods... 5.3.6 Garbage Collection (Exam Objective 7.4) Given a code example, recognize the point at which an object becomes eligible for garbage collection, and determine what is and is not guaranteed by the garbage collection system, and recognize the behaviors of the Object finalize() method. 5.4 Operators 5.4.1 Java Operators (Exam Objective 7.6) Write code that correctly applies the appropriate operators including assignment operators (limited to: =, +=, -=), arithmetic operators (limited to: +, -, *, /, %, ++, --), relational operators (limited to: <, <=, >, >=, ==,!=), the instanceof operator, logical operators (limited to: &,, ^,!, &&, ), and the conditional operator (? :), to produce a desired result. Write code that determines the equality of two objects or two primitives. 5.5 Flow control, Exceptions and Assertions 5.5.1 if and switch Statements (Exam Objective 2.1) Develop code that implements an if or switch statement; and identify legal argument types for these statements. 5.5.2 Loops and Iterators (Exam Objective 2.2) Develop code that implements all forms of loops and iterators, including the use of for, the enhanced for loop (for-each), do, while, labels, break, and continue; and explain the values taken by loop counter variables during and after loop execution. 5.5.3 Handling Exceptions (Exam Objectives 2.4 and 2.5) Develop code that makes use of exceptions and exception handling clauses (try, catch, finally), and declares methods and overriding methods that throw exceptions. Recognize the effect of an exception arising at a specific point in a code fragment. Note that the exception may be a runtime exception, a checked exception, or an error. 5.5.4 Common Exceptions and Errors (Exam Objective 2.6) 7

Recognize situations that will result in any of the following being thrown: ArrayIndexOutOfBoundsException, ClassCastException, IllegalArgumentException, IllegalStateException, NullPointerException, NumberFormatException, AssertionError, ExceptionInInitializerError, StackOverflowError, or NoClassDefFoundError. Understand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programmatically. 5.5.5 Working with the Assertion Mechanism (Exam Objective 2.3) Develop code that makes use of assertions, and distinguish appropriate from inappropriate uses of assertions. 5.6 String, IO, Formatting and parsing 5.6.1 String, StringBuilder, and StringBuffer (Exam Objective 3.1) Discuss the differences between the String, StringBuilder, and StringBuffer classes. 5.6.2 File Navigation and I/O (Exam Objective 3.2) Given a scenario involving navigating file systems, reading from files, or writing to files, develop the correct solution using the following classes (sometimes in combination), from java.io: BufferedReader, BufferedWriter, File, FileReader, FileWriter, PrintWriter, and Console. 5.6.3 Serialization (Exam Objective 3.3) Develop code that serializes and/or de-serializes objects using the following APIs from java.io: DataInputStream, DataOutputStream, FileInputStream, FileOutputStream, ObjectInputStream, ObjectOutputStream, and Serializable. 5.6.4 Dates, Numbers, and Currency (Exam Objective 3.4) Use standard J2SE APIs in the java.text package to correctly format or parse dates, numbers and currency values for a specific locale; and, given a scenario, determine the appropriate methods to use if you want to use the default locale or a specific locale. Describe the purpose and use of the java.util.locale class. 5.6.5 Parsing, Tokenizing, and Formatting (Exam Objective 3.5) Write code that uses standard J2SE APIs in the java.util and java.util.regex packages to format or parse strings or streams. For strings, write code that uses the Pattern and Matcher classes and the String.split method. Recognize and use regular expression patterns for matching (limited to:.(dot), *(star), +(plus),?, \d, \s, \w, [ ], () ). The use of *, +, and? will be limited to greedy quantifiers, and the parenthesis operator will only be used as a grouping mechanism, not for capturing content during matching. For streams, write code using the Formatter and Scanner classes and the PrintWriter.format/printf methods. Recognize and use formatting parameters (limited to: %b, %c, %d, %f, %s) in format strings. 8

5.7 Generics and collections 5.7.1 Overriding hashcode() and equals() (Objective 6.2) Distinguish between correct and incorrect overrides of corresponding hashcode and equals methods, and explain the difference between == and the equals method. 5.7.2 Collections (Exam Objective 6.1) Given a design scenario, determine which collection classes and/or interfaces should be used to properly implement that design, including the use of the Comparable interface. 5.7.3 Using the Collections Framework (Objectives 6.3 and 6.5) 6.3 Write code that uses the NavigableSet and NavigableMap interfaces. 6.5 Use capabilities in the java.util package to write code to manipulate a list by sorting, performing a binary search, or converting the list to an array. Use capabilities in the java.util package to write code to manipulate an array by sorting, performing a binary search, or converting the array to a list. Use the java.util.comparator and java.lang. Comparable interfaces to affect the sorting of lists and arrays. Furthermore, recognize the effect of the "natural ordering" of primitive wrapper classes and java.lang.string on sorting. 5.7.4 Generic Types (Objectives 6.3 and 6.4) Write code that uses the generic versions of the Collections API, in particular the Set, List, and Map interfaces and implementation classes. Recognize the limitations of the nongeneric Collections API and how to refactor code to use the generic versions. 6.4 Develop code that makes proper use of type parameters in class/interface declarations, instance variables, method arguments, and return types; and write generic methods or methods that make use of wildcard types and understand the similarities and differences between these two approaches. Write code that uses the NavigableSet and NavigableMap interfaces. 5.8 Inner Classes 5.8.1 Inner Classes 5.8.2 Method-Local Inner Classes 5.8.3 Anonymous Inner Classes 5.8.4 Static Nested Classes 5.9 Threads 5.9.1 Defining, Instantiating, and Starting Threads (Objective 4.1) Write code to define, instantiate, and start new threads using both java.lang.thread and java.lang.runnable. 5.9.2 Thread States and Transitions (Objective 4.2) 9

Recognize the states in which a thread can exist, and identify ways in which a thread can transition from one state to another. 5.9.3 Synchronizing Code (Objective 4.3) Given a scenario, write code that makes appropriate use of object locking to protect static or instance variables from concurrent access problems. 5.9.4 Thread Interaction (Objective 4.4) Given a scenario, write code that makes appropriate use of wait, notify. or notifyall. 5.10 Development 5.10.1 Using the javac and java Commands (Exam Objectives 7.1, 7.2, and 7.5) Given a code example and a scenario, write code that uses the appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example. Given an example of a class and a command-line, determine the expected runtime behavior. Given the fully-qualified name of a class that is deployed inside and/or outside a JAR file, construct the appropriate directory structure for that class. Given a code example and a classpath, determine whether the classpath will allow the code to compile successfully. 5.10.2 JAR Files (Objective 7.5) Given the fully-qualified name of a class that is deployed inside and/or outside a JAR file, construct the appropriate directory structure for that class. Given a code example and a classpath, determine whether the classpath will allow the code to compile successfully. 5.10.3 Using Static Imports (Exam Objective 7.1) Given a code example and a scenario, write code that uses the appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example. 10