Description
This course introduces the non-C programmer to Java. It describes how
Java can be used to write applications and applets and then goes into
the object oriented aspects of the language. This class assumes the student
has programmed in another language such as Pascal, Basic, or COBOL for
at least a year. The five 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
- Syntax 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 shapes
- Panels
- User interface components
- Buttons
- Check boxes and lists
- Text Input
- The Java Library
- Strings
- Layout management
- Applets
- Differences from applications
- Security issues
- Exceptions
- Catching exceptions
- Throwing exceptions
- Input and output
- File streams
- Retrieving information from server
|