Fast Track to Java 8 and OO Development

Networking/Server/Operating Systems
Schedules
Optional
  LearnITAnytime Online Subscription (1 Year Subscription - $195.00)
  IT Online Library (1 Year Subscription - $1595.00)
Quantity
If quantity is more than 1, Please add all Attendees' Names /Voucher #/ Learning Credit below separated with a comma. If not specified, we will contact you prior to the class start date. Special Instructions
Overview

Fast Track to Java 8 and OO Development provides a comprehensive introduction to Java suitable for programmers with existing programming experience. It can be taught to audiences with less experience by reducing coverage of the optional, more advanced topics.

Java is one of the most important programming languages used today, and its correct usage is a critical part of many systems being written now. The basics of the language are relatively easy, but the challenge lies in learning how to use it well. This is especially true regarding the Object-Oriented nature of Java, which for many developers is a new way of approaching system design and construction.

In addition to teaching you everything you need to become productive in basic Java programming, this course draws on our extensive experience to provide a solid understanding of the core OO and Java concepts and practices needed to create well designed Java programs. It covers all the key OO capabilities and how to use them in Java, including material on creating well designed Java classes, using encapsulation, building more complex functionality with composition, and using inheritance to share functionality and create specialized types. It also covers more advanced concepts such as using interfaces, working with the Java Collections Framework, and overviews of accessing databases with JDBC and JPA (including labs using JPA).

This course is suitable for environments using Java 8, but almost all the labs can also be done with Java 7. The material and labs include coverage of useful new Java capabilities such as default/static methods in interfaces, try-with-resources (Java 7), and lambda expressions. It also stresses the use of good coding practices for all the examples and labs. This course is available for most IDEs, such as Eclipse and IBM RAD.

All labs are done using the Eclipse Development Environment, and the lab instructions include detailed directions on using Eclipse and the Eclipse wizards and tools.

 

Goals
  1. Understand Java’s importance, uses, strengths and weaknesses.
  2. Understand Java language basics.
  3. Write, compile, and run Java programs.
  4. Understand the Object Model and Object Oriented Programming.
  5. Understand and use classes, inheritance, polymorphism.
  6. Create well designed classes and use them in your Java programs.
  7. Use composition and delegation to create objects from other objects.
  8. Understand & use packages to organize code.
  9. Understand interfaces, their importance, and their uses.
  10. Use interfaces to implement abstraction.
  11. Learn good Java coding style.
  12. Create well structured Java programs.
  13. Compile and execute programs with the JDK development tools and with an Integrated Development Environment (IDE) of your choice.
  14. Use the core Java libraries (java.lang, java.util).
  15. Understand & use exceptions for error handling.
  16. Understand the basics of using JDBC and JPA, and use them to access databases from Java.
  17. Use the Java Collections Framework.
  18. Be aware of, and use the new features of Java 8, as well as important advanced features of earlier Java versions.
  19. Understand and use basic I/O streams (optional).

Outline
  1. A First Look
    1. A Simple Java Class
    2. Java’s “Hello World” Program
    3. Lab: Hello World:A Simple Application

  2. Java Basics
    1. Language and Platform Features
    2. Program Life Cycle
    3. The Java SE Development Kit (JDK)
    4. Lab: Working with the Development Environment

  3. Class and Object Basics
    1. The Object Model and Object-Oriented Programming
    2. Classes, References, and Instantiation
    3. Adding Data to a Class Definition
    4. Adding Methods (Behavior)
    5. Lab: Exploring Types and Object Instances
    6. Lab: Writing and Using a Class Definition with Fields and Methods

  4. More on Classes and Objects
    1. Accessing data, the "this" variable
    2. Encapsulation and Access Control, public and private Access
    3. Constructors and Initialization
    4. static Members of a Class
    5. Scopes, Blocks, References to Objects
    6. Type-safe Enums
    7. Lab: Encapsulation / Access Protection
    8. Lab: Writing and Using Constructors
    9. Lab: (Optional) Static Members
    10. Lab: Using enums
    11. Lab: Using the Debugger

  5. Flow of Control
    1. Branching: if, if-else, switch
    2. Iteration: while, do-while, for, break, continue
    3. Lab: Flow of Control / Data Validation

  6. Strings and Arrays
    1. String, StringBuffer, StringBuilder
    2. Arrays, Primitive Arrays, Arrays of Reference Types
    3. varargs
    4. Lab: Using Strings and Arrays

  7. Packages
    1. Package Overview - Using Packages to Organize Code
    2. import statements
    3. Creating Packages, package Statement, Required Directory Structure
    4. Finding Classes, Packages and Classpath
    5. Lab: Using Packages to Organize Code

  8. Composition and Inheritance
    1. Using Composition to Deal with Complexity
    2. Composition/HAS-A, Delegation
    3. Using Inheritance and Polymorphism to share commonality
    4. IS-A, extends, Inheriting Features, Overriding Methods, Using Polymorphism
    5. Class Object
    6. Abstract Classes
    7. Lab: (Optional) Working with Composition
    8. Lab: Using Inheritance to Specialize Classes

  9. Interfaces
    1. Using Interfaces to Define Types
    2. Interfaces and Abstract Classes
    3. Default Methods and static Methods (Java 8)
    4. Lab: Using Interfaces to Remove Implementation Dependencies

  10. Exceptions
    1. Exceptions and the Exception Hierarchy
    2. try and catch
    3. Handling Exceptions
    4. Program Flow with Exceptions
    5. finally
    6. Lab: Throwing and Handling Exceptions

  11. Java Collections and Generics
    1. The Collections Framework and its API
    2. Collections and Java Generics
    3. Collection, Set, List, Map, Iterator
    4. Autoboxing
    5. Collections of Object (non-generic)
    6. Using ArrayList, HashSet, and HashMap
    7. for-each Loop
    8. Processing Items With an Iterator
    9. More About Generics
    10. Lab: Using Lists and Generics
    11. Lab: Using Sets

  12. Database Access with JDBC and JPA
    1. JDBC Overview
    2. JDBC Architecture and API
    3. Using DriverManager, Connection, Statement and ResultSet
    4. JPA Overview
    5. JPA Architecture and Programming View
    6. Entity Classes and Annotations
    7. Mapping an Entity Class
    8. EntityManagerFactory and EntityManager
    9. Working with JPA (Find by primayry key and inserts)
    10. Lab: Mapping an Entity Class
    11. Lab: Working with JPA

  13. Additional Java Features
    1. Date/Time Support (Java 8)
    2. Assertions
    3. Annotations
    4. Lambda Expressions and Method References (Java 8)
    5. Additional Features
    6. Session 14: I/O Streams (Optional)
    7. Readers and Writers
    8. Filter Streams
    9. Byte Streams
    10. Formatted Output
    11. The File Class
    12. New I/O (NIO) APIs
    13. Lab: Formatting Output

Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

 

Class Prerequisites

Experience in the following is required for this Java Fundamentals class:

  • Existing programming experience

Preparing for Class
  • Onsite: Course Setup
  • Live Online: Course Setup | WebEx Setup