Java: Introduction
Duration: 5 days |
Participants: Application developers interested in learning the introductory topics of the Java 2 platform. |
Objectives:
Upon successful completion of this course you will be able to:
- Define and use classes, abstract classes, interfaces, nested classes, and anonymous classes. - Develop Java code that performs stream I/O and network functions. - Recognize Java's strengths and weaknesses. - Recognize the new and advanced features in JDK 1.2 (a.k.a. Java 2), including Swing, code signing, Remote Method Invocation (RMI), Java Native Interface (JNI), and Java Beans. - Understand the object oriented features of Java, including encapsulation, inheritance, and polymorphism. - Use exception handling. - Use Java syntax, including expressions, statements, class declarations, scope, as well as all of the Java keywords, and primitive data types. - Use the following control structures: while, do-while, and for loops, as well as if-else and switch statements. |
Overview: This course teaches you to program in Java using the various Java language constructs and good OO Design. Whjere appropriate, industry supported design patterns are presented. |
Prerequisites: Some programming experience and knowledge of object oriented systems. |
Format: Lecture and discussion with hands-on exercises. |
Topic Outline:
- The Java Environment Introduction Uses for Java The World Wide Web (WWW) HTML Competing Technologies CGI vs Java How Java Achieves Portability Advantages and Disadvantages Applications vs Applets Developing Java Applications Developing Java Applets The javadoc and jdb Tools The package Statement The import Statement Packages, Classes, Files and Directories - Java Basics Introduction Java vs C++ Comments Native Data Types Declaring Variables Identifiers Literals Expressions Floating Point Operations Java Function Calls Simple Statements Control Structures Local Variable Scope Simple Output - Classes in Java Java is Object-Oriented Instantiating a Class Class-Type Variables - Operations on Class-Type Variables The null Value Member Access Class Definitions Method Overloading Constructors Encapsulation Access Specifiers Comparing Objects Class Variables Class Initialization final Variables Class Methods Finalization - Arrays and Strings Java Arrays Array Constant Using Arrays Copying Array Elements String Objects String Methods String Concatenation Converting to String Class StringBuffer - Inheritance Introduction Example of Inheritance Derivation Syntax Effects of Inheritance Protected Access Overriding Methods Constructor Chaining Inheritance and Finalization Abstract Classes Casting Between Class Types - Exceptions Traditional Error Handling Creating an Exception Class The throw Statement Defining an Exception Handler The finally Statement Exception Types The throws Clause - I/O Streams Introduction Class InputStream Class OutputStream Using InputStream and OutputStream File I/O Class FileOutputStream Example Memory Stream Filter Stream Buffered I/O Data Input Data Output Printed Output The LineNumInputStream Example The Applet File I/O - More of the Java API Cloning an Object Making a Class Cloneable The Vector Class Object Wrapper Classes Class Stack Class Hashtable Class Thread Thread Synchronization Using wait ( ) and notifyall ( ) Extensions to Java API Layered Java APIs |
|