Appendix B

OCA Certification Program

The Oracle Certified Associate, Java SE 7 Programmer certification is based on one exam (number 1Z0-803) of 90 multiple-choice questions. To pass, you need to answer at least 68 questions correctly (75). Two and a half hours are allotted to complete the exam.

The 803 exam does not include any questions that are based on recall alone. Instead, it tests your ability to interpret and analyze code and determine if it will compile, execute, and run correctly. Candidates who can read Java code accurately and are familiar with the basics of the language, as defined by the exam topics, have a strong chance of passing. Although the exam format does not allow for written code responses, the candidate who can write short Java programs has the strongest chance of passing.

Before you schedule the exam, you should feel knowledgeable in the syntax and use of common Java programming language constructs, including keywords; reserved words; operators; differences between primitive and object types; arrays and array operations; decision constructs; declaring fields and methods; defining concrete classes, abstract classes, and interfaces; and using exceptions.

This exam focuses on a few key classes in the Java core libraries, namely the String, StringBuilder, ArrayList, RuntimeException, and Error classes. You should expect detailed coverage of these classes. Be prepared to answer questions on any aspect of their intended use. Know their visible constructors, methods, and fields by heart.

You should also feel comfortable defining object-oriented principles such as inheritance and composition and be able to differentiate between them. Expect questions that stress techniques including declaring constructors, casting objects, overloading and overriding methods, extending classes, implementing abstract methods and interfaces, and catching and throwing exceptions. You should be able to define the principles of encapsulation and polymorphism and recognize their application in sample code.

These topic areas are all covered in this book, but the exam is not its sole focus. The topics are arranged to help the reader build skills over a course of study, whether self-directed or part of a college course, and to consider higher level goals in programming that an employable programmer is expected to understand. The book helps you to appreciate clear Java code and to apply everyday practices that help you achieve it. As you can see from Table B-1, I’ve mapped the exam objectives to my chapter outline with those goals in mind. Some exam elements appear outside the subcategories defined by Oracle so I could create a more natural sequence.

Certain topics that do not appear heavily weighted in the exam are given far greater weight in the book. It’s my opinion that these topics cover skills that are essential for your further professional development and thus deserve strong treatment in the early stages of your practice.

Certification Objectives Map

Table B-1 provides objective mappings for the Oracle Certified Associate Java SE 7 Programmer exam. It identifies the chapter where each exam objective is covered.

Table B-1: OCA, Java SE7 objectives map

ObjectiveChapter
Java Basics
Define the scope of variables1
Define the structure of a Java class1
Create executable Java applications with a main method1
Import other Java packages to make them accessible in your code1
Working with Java Data Types
Declare and initialize variables2
Differentiate between object reference variables and primitive variables2
Read or write to object fields2
Explain an object’s lifecycle2
Call methods on objects7
Manipulate data using the StringBuilder class and its methods2
Create and manipulate strings2
Using Operators and Decision Constructs
Use Java operators3
Use parentheses to override operator precedence3
Test equality between strings and other objects using == and equals ()3
Create if and if/else constructs3
Use a switch statement 3
Creating and Using Arrays
Declare, instantiate, initialize and use a one-dimensional array4
Declare, instantiate, initialize and use multi-dimensional array4
Declare and use an ArrayList4
Using Loop Constructs
Create and use while loops5
Create and use for loops including the enhanced for loop5
Create and use do/while loops5
Compare loop constructs5
Use break and continue5
Working with Methods and Encapsulation
Create methods with arguments and return values7
Apply the static keyword to methods and fields7
Create an overloaded method7
Differentiate between default and user-defined constructors8
Create and overload constructors8
Apply access modifiers6
Apply encapsulation principles to a class6
Determine the effect upon object references and primitive values when they are passed into methods that change the values 7
Working with Inheritance
Implement inheritance9
Develop code that demonstrates the use of polymorphism9
Differentiate between the type of a reference and the type of an object9
Determine when casting is necessary9
Use super and this to access objects and constructors9
Use abstract classes and interfaces10
Handling Exceptions
Differentiate among checked exceptions, RuntimeException and Error11
Create a try-catch block and determine how exceptions alter normal program flow11
Describe what exceptions are used for in Java11
Invoke a method that throws an exception11
Recognize common exception classes and categories11
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.85.221