Getting Started
  • Welcome to this course
  • Install Java and NetBeans
  • What is Java?
  • Source Code Archive
  • The Little Book Of Java
  • How to use the demo projects in NetBeans
  • Java and NetBeans
First Steps in Java
  • A first program – Hello world
  • Making sense of Java code
  • How to open a command prompt in Windows and the Mac
  • How to pass arguments to a program
  • How to create visual applications
  • Compiling Java programs – from source code to bytecode
  • Printing text at the system prompt
  • Displaying text in visual controls
  • Essential features of Java programs
The Fundamentals of Java Programming
  • Data Types and Variables
  • Constants
  • Design and program a calculator in NetBeans
  • Packages and imports
  • Type conversion
  • Primitives and wrappers
  • Type casts
  • Numeric literals
  • Automatic string conversions
  • Autoboxing and unboxing
  • Strings
  • Types and packages
Object Orientation
  • What is Object Orientation?
  • Classes and objects
  • Class hierarchies
  • How to create a subclass
  • Methods
  • Static methods and variables
  • Classes and objects
Conditional Tests and Operators
  • Operators
  • Arithmetic operators
  • String equality
  • String equality – exceptions to the rule!
  • if..else tests
  • switch..case
  • Logical operators and Booleans
  • Compound assignment operators
  • Unary addition and subtraction operators
  • Operators and test conditions
Arrays and Collections
  • Arrays
  • Zero-based arrays
  • Initializing arrays
  • for loops
  • Garbage collection
  • ArrayLists
  • Interfaces
  • Generics
  • Maps
  • Type-safe HashMaps
  • ArraysLists, HashMaps and generics
Loops
  • for loops revisited
  • Enhanced for statements
  • while
  • while loop to read text file
  • do..while
  • Multidimensional arrays
  • Iterating over multidimensional arrays
  • break
  • continue
  • Disadvantages of break and continue
  • Breaking out of a nested for loop
  • Labelled break
  • Loops
Enumerated types, interfaces and scope
  • Enums
  • Enums and static constants
  • The Enum class
  • Debugging code
  • Interfaces
  • A custom interface
  • Scope
  • Local variables
  • Access modifiers
  • Enums and interfaces
Generics and Exceptions
  • Introducing Generics
  • Strongly-typed lists
  • Generic type parameters
  • Generic classes
  • Generic collections
  • Overriding methods
  • Overloading methods
  • Exceptions
  • Catching exceptions
  • Exception types
  • Generics and exceptions
Files and Serialization