 |
|
OL309: Programming
in Java, Part 1 - Object Orientation and Core Issues
-
Description:
-
-
The Java programming language is a powerful object-oriented language that is
increasingly the language of choice for implementing enterprise solutions
by organizations.
This course provides hands-on training so that you can quickly gain the
knowledge and experience to proficiently program in Java.
It is meant for the participant who has some background programming in
a higher-level, structured language like C or Cobol.
This course begins with a review of basic programming constructs and their
syntax in Java, covering the use of variables, data types, operators
and control flow.
Next, concepts of object-orientation are presented and applied using Java.
You learn how to use classes provided by the Java API, as well
implement your own classes, and use objects.
You'll practice using data structures implemented through the Collections
Framework, and you'll apply exception handling.
You'll gain experience with the Java input and output mechanisms.
Finally, you'll learn about multi-threading in Java applications and
experience the effects of its use.
Beginning programmers should have sound experience in any
structured programming language before taking this course.
This course is a prerequisite for most of our other
Java 2 API programming topics.
This hands-on course is composed of comprehensive
lectures, runnable code demonstrations, and independent programming
sessions.
The course includes the incremental development of a complete
command line application.
-
-
Objectives:
-
-
At the end of this course, participants will be
able to:
-
-
Write, compile, and execute a Java program.
-
Develop applications using Java's object-oriented features.
-
Use Java's exception handling features to add to your application's robustness.
-
Use Java's class libraries that support I/O, data structures, and threading
in the construction of an application.
-
Audience:
-
-
Programmers with sound experience in any structured programming language.
Programmers who want to learn the OO programming paradigm and transition
from their current programming language to Java.
-
Prerequisites:
-
-
Some programming experience in a higher-level structured language
like C is essential.
Familiarity with C++ or object-oriented concepts will be useful,
but is not required. This course is a prerequisite for most of our advanced
Java API programming topics.
Duration: 3 days
-
Outline of Contents:
-
-
Unit 1: Java Concepts, Syntax, Constructs and Tools
-
Learn how to compile and execute a Java program.
-
Create javadoc documentation.
-
Apply Java syntax and use Java constructs.
Unit 2: Classes and Objects
-
Apply some basic concepts of the object oriented
paradigm using Java.
-
Implement classes using atttributes, methods
and constructors.
-
Understand the relationship between classes
and objects.
-
Use classes and objects in a complete Java
stand alone application.
-
Apply Java's scoping, parameter passing and
copying rules.
Unit 3: Inheritance,
Interfaces and Polymorphism
-
Understand the OO concepts of inheritance -
hierarchies, abstract classes, interfaces, polymorphism, method overloading
and overriding.
-
Use Java to implement:
-
a class hierarchy, an abstract class and an
interface.
-
overridden methods.
-
a class using casting and the instanceof
operator.
Unit 4: More Keywords and Classes
-
Understand and code with the "this" and "super"
references.
-
Implement code using the static modifier,
initializer and understand when and when not to use them.
-
Describe the purpose and use of the Wrapper,
String, System and Math classes.
|
Unit 5: Data Structures
-
Use Arrays in Java.
-
Understand what the Collections Framework is and why
it is useful.
-
Code with the interfaces Set, List and Map and
know which classes Java provides that implement these interfaces.
-
Implement code to iterate through any Java
data structure.
Unit 6: Exception
Handling
-
Learn the concept of exceptions and exception
handling.
-
Understand the exception inheritance hierarchy.
-
Use Java's exception handling mechanism and
explain what exception propagation is.
-
Define and use your own application-specific
exceptions.
Unit 7: Java Input and Output
-
Learn how to read from standard input (stdin) and
write to standard output (stdout).
-
Understand how to analyze data input.
-
Use object-based streams to store and retrieve objects.
Unit 8: Multi-Threaded Programming
-
Know why and how threads are used.
-
Implement a program using threads.
-
Understand the challenges of creating safe
multi-threaded programs and the issues of thread synchronization.
|
|