Course Overview
Java 8 Programming for OO Experienced Developers is a five‐day, comprehensive hands‐on introduction to Java training course geared for developers who have prior working knowledge of object‐oriented programming languages such as C++. Throughout the course students learn the best practices for writing great object‐oriented programs in Java 8, using sound development techniques, new improved features for better performance, and new capabilities for addressing rapid application development. In addition to the normal exercises that are liberally sprinkled throughout the course, there is a case study that covers the entire spectrum from use cases to object‐oriented design to implemented classes. This case study supplements the course and can be used during and after the course as a reference and a tool for reviewing and practicing what was learned in class.
Note: In order to provide the broadest range of courses and class dates for this class, this course may be taught by either Wintellect or one of our training Partners.
Key Learning Areas
- Understand not only the fundamentals of the Java language, but also its importance, uses, strengths and weaknesses
- Understand the basics of the Java language and how it relates to OO programming and the Object Model
- Learn to use Java multi‐threading and exception handling features
- Understand and use classes, inheritance and polymorphism
- Understand and use collections, generics, autoboxing, and enumerations including new Java features and capabilities
- Work with the logging API and framework that is part of the Java platform
- Use the JDBC API for database access
- Use Java for networking and communication applications
- Work with annotations
- Understand and work with the classes in the concurrent package
- Outline the options for GUI applications in Java
- Take advantage of the Java tooling that is available with the programming environment being used in the class
Specific Java 8 features that are covered in the course include:
- The new Date API
- Lambda Expressions
- Streams
- Collectors
Course Outline
Java ‐ A First Look
The Java Platform
- Java Platforms
- Lifecycle of a Java Program
- Responsibilities of JVM
- Documentation and Code Reuse
Using the JDK
- Setting Up Environment
- Locating Class Files
- Compiling Package Classes
- Source and Class Files
- Java Applications
Getting Started with Java
Writing a Simple Class
- Classes in Java
- Class Modifiers and Types
- Class Instance Variables
- Primitives vs. Object References
- Creating Objects
Adding Methods to the Class
- Passing Parameters Into Methods
- Returning a Value From a Method
- Overloaded Methods
- Constructors
- Optimizing Constructor Usage
Language Statements
- Operators
- Comparison and Logical Operators
- Looping
- Continue and Break Statements
- The switch Statement
- The for‐each() Loop
Using Strings
- Strings
- String Methods
- String Equality
- StringBuffer
- StringBuilder
Specializing in a Subclass
- Extending a Class
- Casting
- The Object Class
- Default Constructor
- Implicit Constructor Chaining
Essential Java Programming
Fields and Variables
- Instance vs. Local Variables: Usage
- Differences
- Data Types
- Default Values
- Block Scoping Rules
- Final and Static Fields
- Static Methods
Using Arrays
- Arrays
- Accessing the Array
- Multidimensional Arrays
- Copying Arrays
- Variable Arguments
Java Packages and Visibility
- Class Location of Packages
- The Package Keyword
- Importing Classes
- Executing Programs
- Java Naming Conventions
Advanced Java Programming
Inheritance and Polymorphism
- Polymorphism: The Subclasses
- Upcasting vs. Downcasting
- Calling Superclass Methods From
- Subclass
- The final Keyword
Interfaces and Abstract Classes
- Separating Capability from
- Implementation
- Abstract Classes
- Implementing an Interface
- Abstract Classes vs. Interfaces
Exceptions
- Exception Architecture
- Handling Multiple Exceptions
- Automatic Closure of Resources
- Creating Your Own Exceptions
- Throwing Exceptions
- Checked vs. Unchecked Exceptions
Java Developer's Toolbox
Utility Classes
- Wrapper Classes
- The Number Class
- Random Numbers
- Autoboxing/Unboxing
- The Date Class
Enumerations and Static Imports
- Enumeration Syntax
- When You Should Use Enumerations
- Using Static Imports
- When You Should Use Static Imports
The Date/Time API
- The Date Class
- Introduce the new Date/Time API
- LocalDate, LocalDateTime, etc.
- Formatting Dates
- Working with time zones
- Manipulate date/time values
Collections and Generics
Introduction to Generics
- Generics and Subtyping
- Bounded Wildcards
- Generic Methods
- Legacy Calls To Generics
- When Generics Should Be Used
Collections
- Characterizing Collections
- Collection Interface Hierarchy
- Iterators
- The Set Interface
- The List Interface
- Queue Interface
- Map Interfaces
- Using the Right Collection
- Collections and Multithreading
Java Lambda Expressions and Streams
Introduction to Lambda Expressions
- Functional vs OO Programming
- Anonymous Inner‐classes
- Lambda Expression Syntax
- Functional Interfaces
- Method references
- Constructor references
Streams
- Processing Collections of data
- The Stream interface
- Reduction and Parallelism
- Filtering collection data
- Sorting Collection data
- Map collection data
- Find elements in Stream
- Numeric Streams
- Create infinite Streams
- Sources for using Streams
Collectors
- Creating Collections from a Stream
- Group elements in the Stream
- Multi‐level grouping of elements
- Partitioning Streams
Multithreading and Concurrency
Multithreading
- Principles of Multithreading
- Creating a Threaded Class
- Basic Features of the Thread Class
- Thread Scheduling
- Thread Synchronization
Concurrent Java
- Concurrent Locks are Explicit and Flexible
- Executor Interfaces Provide Thread Management
- Challenges for Concurrent Use of Collections
- Concurrent Collections
- Atomic Variables Avoid
- Synchronization
Java I/O
File System Access
- The File Class
- File Utility Methods
Java I/O
- The Java I/O Mechanism
- Subclasses Accessing Real Data
- Filter Classes
- New File IO ‐ NIO
- NIO Overview
Java Application Development
Introduction to Annotations
- Annotations Overview
- Working with Java Annotations
Java Data Access JDBC API
- Connecting to the Database
- Statement and PreparedStatement
- ResultSet
- Executing Inserts, Updates, and Deletes
- Controlling Transactions and
Concurrency
- Connecting to the Database
- Statement and PreparedStatement
- ResultSet
- Executing Inserts, Updates, and Deletes
- Controlling Transactions and Concurrency
Who Benefits
Students who attend Java 8 Programming for OO Developers will leave this course armed with the required skills to develop solid object‐oriented applications written in Java, using sound coding techniques and best coding practices. Geared for developers with prior OO development experience in languages such as C++ or SmallTalk, this course will teach students everything they need to become productive in essential Java programming.
Prerequisites
This is an introductory‐level Java course, designed for experienced developers who wish to get up and running with Java, or who need to reinforce sound Java coding practices, immediately. Attendees should have a working knowledge of developing software applications with OO languages such as C++ or C#.