Java Programming Introduction
Course length: 5 days
Prerequisites: Object-Oriented Analysis and Design or equivalent knowledge is recommended.
Topics
- About objects: manipulating objects with references, creating all objects and never needing to destroy them, creating new data types: class, methods, arguments and return values, building a Java program, comments and embedded documentation, coding style
- Controlling Program flow: using Java operators, learning execution control
- Initialization and cleanup: guaranteed initialization with the constructor, method overloading, cleanup: finalization and garbage collection, member and array initialization
- Hiding the implementation: Package: the library unit, Java access specifiers, interface and implementation, class access
- Reusing classes: combining composition and inheritance, choosing composition vs. inheritance, incremental development, upcasting, the final keyword, initialization and class loading
- Polymorphism: upcasting revisited, abstract classes and methods, constructors and polymorphism, designing with inheritance
- Interfaces and Inner classes
- Error handling with exceptions: basic exceptions, catching an exception and any exception, the exception specification, standard Java exceptions, performing cleanup with finally, exception restrictions, constructors, exception matching, exception guidelines
- Detecting types: the need for RTTI and its syntax
- Collections of objects: arrays, introduction to containers, container disadvantage: unknown type, iterators, container taxonomy, collection functionality, holding references, choosing an implementation, sorting and searching lists, utilities, unsupported operations
- The Java I/O System: the File class, adding attributes and useful interfaces, file reading/writing utilities, standard and new I/O, object serialization
- Concurrency: basic threads, sharing limited resources, improperly thread states, cooperation between threads, interrupting a blocked thread
- Listener classes: a brief look at the Java Swing Event Model to demonstrate the use of Listener classes
- Passing and returning objects: passing references around, making local copies, controlling cloneability, read-only classes
Return to Courses