OCP Java SE 7 Programmer II Certification Guide Prepare For The 1ZO 804 Exam
User Manual: Pdf
Open the PDF directly: View PDF
Page Count: 834 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Front cover
- brief contents
- contents
- preface
- acknowledgments
- about this book
- Introduction
- 1 Java class design
- 1.1 Java access modifiers
- 1.2 Overloaded methods and constructors
- 1.3 Method overriding and virtual method invocation
- 1.4 Overriding methods of class Object
- 1.5 Casting and the instanceof operator
- 1.6 Packages
- 1.6.1 The need for packages
- 1.6.2 Defining classes in a package using the package statement
- 1.6.3 Using simple names with import statements
- 1.6.4 Using packages without using the import statement
- 1.6.5 Importing a single member versus all members of a package
- 1.6.6 The import statement doesn’t import the whole package tree
- 1.6.7 Importing classes from the default package
- 1.6.8 Static imports
- 1.7 Summary
- Review notes
- Sample exam questions
- Answers to sample exam questions
- 2 Advanced class design
- 3 Object-oriented design principles
- 3.1 Interfaces
- 3.2 Class inheritance versus interface inheritance
- 3.3 IS-A and HAS-A relationships in code
- 3.4 Cohesion and low coupling
- 3.5 Object composition principles
- 3.6 Introduction to design patterns
- 3.7 Singleton pattern
- 3.8 Factory pattern
- 3.9 DAO pattern
- 3.10 Summary
- Review notes
- Sample exam questions
- Answers to sample exam questions
- 4 Generics and collections
- 4.1 Introducing generics: WARM-UP
- 4.2 Creating generic entities
- 4.3 Using type inference
- 4.4 Understanding interoperability of collections using raw types and generic types
- 4.5 Introducing the collections framework: WARM-UP
- 4.6 Working with the Collection interface
- 4.7 Creating and using List, Set, and Deque implementations
- 4.8 Map and its implementations
- 4.9 Using java.util.Comparator and java.lang.Comparable
- 4.10 Sorting and searching arrays and lists
- 4.11 Using wrapper classes
- 4.11.1 Class hierarchy of wrapper classes
- 4.11.2 Creating objects of the wrapper classes
- 4.11.3 Retrieving primitive values from the wrapper classes
- 4.11.4 Parsing a string value to a primitive type
- 4.11.5 Difference between using method valueOf() and constructors of wrapper classes
- 4.11.6 Comparing objects of wrapper classes
- 4.12 Autoboxing and unboxing
- 4.13 Summary
- Review notes
- Creating generic entities
- Using type inference
- Understanding interoperability of collections using raw types and generic types
- Working with the Collection interface
- Creating and using List, Set, and Deque implementations
- Map and its implementations
- Using java.util.Comparator and java.lang.Comparable
- Sorting and searching arrays and lists
- Using wrapper classes
- Autoboxing and Unboxing
- Sample exam questions
- Answers to sample exam questions
- 5 String processing
- 6 Exceptions and assertions
- 6.1 Using the throw statement and the throws clause
- 6.2 Creating custom exceptions
- 6.3 Overriding methods that throw exceptions
- 6.4 Using the try statement with multi-catch and finally clauses
- 6.5 Auto-closing resources with a try-with-resources statement
- 6.6 Using assertions
- 6.7 Summary
- Review notes
- Sample exam questions
- Answers to sample exam questions
- 7 Java I/O fundamentals
- 8 Java file I/O (NIO.2)
- 9 Building database applications with JDBC
- 10 Threads
- 11 Concurrency
- 12 Localization
- 12.1 Internationalization and localization
- 12.2 Resource bundles
- 12.3 Formatting dates, numbers, and currencies for locales
- 12.3.1 Format numbers
- 12.3.2 Format currencies
- 12.3.3 Format dates
- 12.3.4 Formatting and parsing time for a specific locale
- 12.3.5 Formatting and parsing date and time together for a specific locale
- 12.3.6 Using custom date and time patterns with SimpleDateFormat
- 12.3.7 Creating class Date object using class Calendar
- 12.4 Summary
- Review Notes
- Sample exam questions
- Answers to sample exam questions
- Appendix—Answers to “Twist in the Tale” exercises
- A.1 Chapter 1: Java class design
- A.2 Chapter 2: Advanced class design
- A.3 Chapter 3: Object-oriented design principles
- A.4 Chapter 4: Generics and collections
- A.5 Chapter 5: String processing
- A.6 Chapter 6: Exceptions and assertions
- A.7 Chapter 7: Java I/O fundamentals
- A.8 Chapter 8: Java file I/O (NIO.2)
- A.9 Chapter 9: Building database applications with JDBC
- A.10 Chapter 10: Threads
- A.11 Chapter 11: Concurrency
- A.12 Chapter 12: Localization
- index
- Back cover