Vous êtes sur la page 1sur 7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Trail: Bonus Lesson: Preparation for Java Programmer Language Certification

Programmer Level II Exam


This page maps sections in the Java Tutorials to topics covered in the Java SE 7 Programmer II exam. This exam is associated with the "Oracle Certified Professional, Java SE 7 Programmer" certificate. The topics covered in this exam are: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Java Class Design Advanced Class Design Object-Oriented Design Principles Generics and Collections String Processing Exceptions and Assertions Java I/O Fundamentals Java File I/O (NIO.2) Building Database Applications with JDBC Threads Concurrency Localization

Section 1: Java Class Design


Item 1: Use access modifiers: p r i v a t e ,p r o t e c t e d ,p u b l i c . Controlling Access to Members of a Class Item 2: Override methods. Overriding and Hiding Methods Defining Methods Using the Keyword super Item 3: Overload constructors and other methods appropriately. Defining Methods Item 4: Use the i n s t a n c e o foperator and casting. Inheritance Item 5: Use virtual method invocation. Polymorphism

docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html

1/7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Item 6: Override methods from the O b j e c tclass to improve the functionality of your class. Overriding and Hiding Methods Item 7: Use p a c k a g eand i m p o r tstatements. Creating and Using Packages Using Package Members

Section 2: Advanced Class Design


Item 1: Identify when and how to apply abstract classes. Abstract Methods and Classes Item 2: Construct abstract Java classes and subclasses. Abstract Methods and Classes Item 3: Use the s t a t i cand f i n a lkeywords. Variables Understanding Instance and Class Members Item 4: Create top-level and nested classes. Declaring Classes Nested Classes Item 5: Use enumerated types. Enum Types

Section 3: Object-Oriented Design Principles


The Java Tutorials do not cover Design Patterns topics. The following references cover design patterns using the Java programming language: Head First Design Patterns by Elizabeth Freeman, et al Java Design Pattern Essentials by Tony Bevis Item 1: Write code that declares, implements and/or extends interfaces. Defining an Interface Interfaces Implementing an Interface Item 2: Choose between interface inheritance and class inheritance. Item 3: Develop code that implements "is-a" and/or "has-a" relationships.

docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html

2/7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Item 4: Apply object composition principles. Item 5: Design a class using the Singleton design pattern. Item 6: Write code to implement the DAO pattern. Item 7: Design and create objects using a factory, and use factories from the API.

Section 4: Generics and Collections


The Generics (Updated) lesson, the Collections trail and, in particular, the specified pages. Item 1: Create a generic class. Generic Types Item 2: Use the diamond syntax to create a collection. The Diamond Item 3: Analyze the interoperability of collections that use raw types and generic types. Raw Types Type Inference Item 4: Use wrapper classes and autoboxing. Autoboxing and Unboxing Wrapper Implementations Item 5: Create and use a L i s t ,aS e t , and a D e q u e . The List Interface List Implementations The Set Interface List Implementations The Queue Interface Queue Implementations Item 6: Create and use a M a p . The Map Interface Map Implementations Item 7: Use j a v a . u t i l . C o m p a r a t o rand j a v a . l a n g . C o m p a r a b l e . Object Ordering The SortedMap Interface The SortedSet Interface Item 8: Sort and search arrays and lists.
docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html 3/7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Algorithms The List Interface Object Ordering The SortedSet Interface The SortedMap Interface

Section 5: String Processing


Item 1: Search, parse and build strings. Strings Converting Between Numbers and Strings Comparing Strings and Portions of Strings Manipulating Characters in a String Item 2: Search, parse, and replace strings by using regular expressions. Methods of the Pattern Class Methods of the Matcher Class Item 3: Use string formatting. Strings Formatting Numeric Print Output

Section 6: Exceptions and Assertions


Item 1: Use t h r o wand t h r o w sstatements. Specifying the Exceptions Thrown by a Method How to Throw Exceptions Item 2: Use the t r ystatement with multi-catch, and f i n a l l yclauses. Catching and Handling Exceptions The try Block The catch Blocks The finally Block Putting It All Together Item 3: Autoclose resources with a t r y -with-resources statement. The try-with-resources Statement Item 4: Create custom exceptions. Creating Exception Classes Item 5: Test invariants by using assertions. Questions and Exercises: Classes (assertion example)
docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html 4/7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Section 7: Java I/O Fundamentals


Item 1: Read and write data from the console. The I/O Streams lesson and, in particular, the following pages: Byte Streams I/O from the Command Line Item 2: Use streams to read and write files. The File I/O (Featuring NIO.2) lesson, and in particular, the following pages: Reading, Writing, and Creating Files Creating and Reading Directories Random Access Files

Section 8: Java File I/O (NIO.2)


Item 1: Use the P a t hclass to operate on file and directory paths. What Is a Path? (And Other File System Facts) Path Operations Item 2: Use the F i l e sclass to check, delete, copy, or move a file or directory. File Operations Checking a File or Directory Deleting a File or Directory Copying a File or Directory Moving a File or Directory Item 3: Read and change file and directory attributes. Managing Metadata (File and File Store Attributes) Item 4: Recursively access a directory tree. Walking the File Tree Item 5: Find a file by using the P a t h M a t c h e rclass. Finding Files What is a Glob? Item 6: Watch a directory for changes by using W a t c h S e r v i c e . Watching a Directory for Changes

Section 9: Building Database Applicatons with JDBC


docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html 5/7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Item 1: Define the layout of the JDBC API. JDBC Basics: Getting Started Item 2: Connect to a database by using a JDBC driver. Establishing a Connection Connecting with DataSource Objects Item 3: Update and query a database.. Processing SQL Statements with JDBC Item 4: Customize the transaction behavior of JDBC and commit transactions. Using Transactions Item 5: Use the JDBC 4.1 R o w S e t P r o v i d e r ,R o w S e t F a c t o r yand R o w S e tinterfaces. Using RowSet Objects Using JdbcRowSet Objects

Section 10: Threads


Item 1: Create and use the T h r e a dclass and the R u n t i m einterface. Defining and Starting a Thread Item 2: Manage and control thread lifecycle. Pausing Execution with Sleep Interrupts Joins Item 3: Synchronize thread access to shared data. Synchronization Thread Interference Synchronized Methods Intrinsic Locks and Synchronization Item 4: Identify potential threading problems. Memory Consistency Errors Deadlock

Section 11: Concurrency


Item 1: Use j a v a . u t i l . c o n c u r r e n tcollections. Concurrent Collections
docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html 6/7

1/26/13

Programmer Level II Exam (The Java Tutorials > Bonus > Preparation for Java Programmer Language Certification)

Item 2: Apply atomic variables and looks. Atomic Variables Item 3: Use E x e c u t o r sand T h r e a d P o o l s . Executors Executor Interfaces Thread Pools Item 4: Use the parallel F o r k / J o i nFramework. Fork/Join

Section 12: Localization


Item 1: Read and set the locale by using the L o c a l eobject.. Setting the Locale Creating a Locale Item 2: Build a resource bundle for each locale. About the ResourceBundle Class Backing a ResourceBundle with Properties Files Item 3: Load a resource bundle in an application. Customizing Resource Bundle Loading Item 4: Format text for localization by using N u m b e r F o r m a tand D a t e F o r m a t . Numbers and Currencies Dates and Times

Problems with the examples? Try Compiling and Running the Examples: FAQs. Complaints? Compliments? Suggestions? Give us your feedback. Your use of this page and all the material on pages under "The Java Tutorials" banner is subject to these legal notices.

About Oracle | Oracle Technology Network | Terms of Use

Copyright 1995, 2013 Oracle and/or its affiliates. All rights reserved.

Previous page: Programmer Level I Exam Next page: Java SE 7 Upgrade Exam

docs.oracle.com/javase/tutorial/extra/certification/javase-7-programmer2.html

7/7

Vous aimerez peut-être aussi