Description
This course introduces the C++ programmer to Java. It describes how Java
can be used to write applications and applets and then goes into depth
on the object oriented aspects of the language. This class assumes the
student has programmed in C++ for at least six months or has taken a C++
course. The three day class combines lecture with hands-on exercises.
Objectives
By the end of the course you will be able to:
- Write a simple Java application and applet
- Use the Java library
- Understand the Java approach to object-oriented
programming
- Create Java classes
- Appreciate the strengths and weaknesses of Java
Outline
- C++ aspects of Java
- Data types
- Operators
- Control flow
- Arrays
- Functions
- Classes
- Data and function members
- Object initialization - constructors
- Static members and static functions
- Member scope
- Functions
- Call by value and call by reference
- Function overloading
- Function return values
- Encapsulation
- Public, Private, Protected
- Packages
- Inheritance
- Abstract classes
- Interfaces
- Programming with Swing
- Displaying text
- Drawing and filling shapes
- Panels
- Images
- Buffering
- User interface components
- Buttons
- Check boxes and lists
- Text Input
- Layout management
- The Java Library
- Strings
- Layout management
- Applets
- Differences from applications
- Security issues
- Exceptions
- Catching exceptions
- Throwing exceptions
- Input and output
- File streams
- Data streams
- String tokenizers
|