Java Programming

java programming

Introduction

This course demonstrates how to install both Java and the Eclipse IDE and dives into the particulars of programming. The course also explains the fundamentals of Java, from creating simple variables, assigning values, and declaring methods to working with strings, arrays, and subclasses; reading and writing to text files; and implementing object oriented programming concepts.

Pre-requisition:

Computer literacy, Programming Basic, Basic English

Course Outline

  1. What Is Java?
    1. The history of Java
    2. Java compilation and syntax
    3. Understanding the principles of Java
    4. Choosing a development environment
  2. Installing the Software
    1. Installing Java on Windows
    2. Installing Eclipse on Windows
    3. Exploring Java on Mac OS X Leopard and Snow Leopard
    4. Installing Java on Mac OS X Lion
    5. Installing Eclipse on Mac OS X
  3. Getting Started
    1. Creating a Hello World application
    2. Exploring the Eclipse IDE
    3. Compiling and running from the command line
    4. Passing arguments to the application
    5. Using the Java API documentation
    6. Memory management and garbage collection
  4. Using Primitive Data Types
    1. Everything is an object
    2. Declaring and initializing variables
    3. Working with numbers
    4. Converting numeric values
    5. Understanding operators
    6. Working with character values
    7. Working with Boolean values
    8. Outputting primitive values as strings
    9. Creating a simple calculator application
  5. Exploring Syntax and Flow
    1. Writing conditional code
    2. Using the switch statement
    3. Repeating code blocks with loops
    4. Creating reusable code with methods
    5. Declaring methods with arguments
    6. Overloading method names with different signatures
    7. Passing arguments by reference or by value
    8. Creating a more complex calculator application
  6. Working with Complex Objects
    1. Using the String class
    2. Building strings with StringBuilder
    3. Parsing string values
    4. Working with date values
  7. Exception Handling and Debugging
    1. Understanding compile-time vs. runtime errors
    2. Handling exceptions with try/catch
    3. Throwing exceptions in methods
    4. Using the debugger
  8. Using Data Collections
    1. Using simple arrays
    2. Using two-dimensional arrays
    3. Managing resizable arrays with ArrayList
    4. Managing unordered data with HashMap
    5. Looping through collections with iterators
  9. Creating Custom Classes
    1. Understanding encapsulation
    2. Creating and instantiating custom classes
    3. Organizing classes with packages
    4. Creating and using instance methods
    5. Storing data in instance variables
    6. Using constructor methods
    7. Managing instance data with getter and setter methods
  10. Working with Inheritance and Polymorphism
    1. Understanding inheritance and polymorphism
    2. Extending custom classes
    3. Overriding superclass methods
    4. Casting subclass objects
    5. Understanding interfaces and implementing classes
    6. Creating your own interfaces
    7. Using abstract classes and methods
  11. Working with Files
    1. Managing files with the core class library
    2. Managing files with Apache Commons FileUtils
    3. Reading a text file from a networked resource
    4. Parsing an XML file with DOM
  12. Preparing an Application for Deployment
    1. Creating your own JAR files
    2. Understanding the classpath
    3. Documenting code with Javadoc