Java Training Overview
The Introduction to Java Programming course teaches students: the syntax of the Java programming language; Object-Oriented Programming using Java; exception handling; file input/output (I/O); JSP, Servlets; and EJB; and, optionally, creating Graphical User Interfaces (GUIs) using AWT and Swing. Students will learn how to develop Java applications and, optionally, how to develop applets. best replica watches
Java Training Audience
This course is intended for programmers who are interested in adding Java to their skills.
Java Training Prerequisites
Students should have some basic-level knowledge of programming in any programming language.
Java Training Learning Objectives
After completing this course, the student should be able to:
- Apply OOP principles
- Design OO applications using abstraction, encapsulation, modularity, and
hierarchy
- Create applications (and, optionally, applets)
- Use Java Exceptions to guarantee graceful error recovery of your application
- Do input/output using Java
- Create and use inner classes in your program to be concise and clear
- Create Servlets, JSPs, and EJBs
- Optionally, develop GUI using AWT and Swing with event handling IWC Portugieser Replica
Java Training Topics
- Java Basics
- Branching and Looping
- Objects
- Advanced Class Concepts
- Exceptions
- Stream I/O
- Servlets
- JavaServer Pages
- Enterprise JavaBeans
Java Training Practical Work
Extensive practical exercises take students through all major aspects of the design and development of Java programs
Java Training Course duration
Five Days
Java Training Course outline
0. Orientation
- Introduction
- Using JDeveloper
- Java Basics
- Branching and Looping
- Arrays
- Objects
- Advanced Class Concepts
- Advanced Class Concepts
- Exceptions
- Stream I/O
- Servlets
- Java Server Pages
- Enterprise Java Beans Programming - Overview
1. Introduction
- Overview
- History of Java
- Goals of Java
- Java Virtual Machine
- The JVM - Continued
- Garbage Collection
- Hello World – An Example
- Java Versions
- Summary
2. Using JDeveloper
- Objectives
- Oracle JDeveloper 10g
- Oracle JDeveloper
- Key Features of JDeveloper
- The IDE
- Applications Pane
- Code editor
- Custom Editors
- The Structure Pane
- The Messages Pane
3.
- Objectives
- Comments
- Semicolons and White Spaces
- Blocks
- Identifier
- Keywords
- Primitive Data Types
- Logical - boolean
- Textual – char and String
- Integral – byte, short, int, long
- Floating Point - float and double
- Understanding Objects
- Creating a New Type
- Declaring a Variable
- Creating an Object
- Wrapper Classes for Primitive Types
- JVM Storage Areas
- Scope of a Variable
- Arithmetic Operators
- Using Arithmetic Operators
- Assignment Operators
- Logical Expressions
- Short-Circuit Logical Operators
- String Concatenation with +
- Bitwise Operators
- Bitwise Example
- Conditional Expression
- Casting
- Packages
- Console I/O
4. Branching and Looping
- Objectives
- Conditions
- The if Statement
- The if Statement–An Example
- The if .. else Statement
- Logical Operators and the if..else Statement
- The switch Statement
- The switch Statement – An Example
- The while Statement
- The while Statement – An Example
- The do…while Statement
- The do while Statement – An Example
- The for loop
- The for loop – An Example
- For-each loop
- Break and Continue
- The break Example
- The continue Example
- Labeled break Example
- Labeled continue Example
5. Arrays
- Objectives
- Arrays
- Declaring Arrays
- Creating Arrays
- Accessing Arrays
- Initializing Array
- Multidimensional Arrays
- Copying Arrays
6. Objects
- Objectives
- Object Oriented Programming
- Creating your own Data Type
- Class Members
- Methods
- Writing a Method – An Example
- Calling a Method – An Example
- Pass-by-Value
- The this keyword
- Data Hiding
- Encapsulation
- Overloading
- Constructing and Initializing Objects
- Constructors
- Invoking an Overloaded Constructor
- Default Constructor
- Inheritance
- Inheritance – An Example
- Constructors Are Not Inherited
- Polymorphism
- Conditions for Polymorphism
- The super Keyword
- The instanceof Operator
- Casting Objects
- Overriding
- Invoking Parent Class Constructors
7. Advanced Class Concepts
- Objective
- Objectives
- Static Class Variables
- Class vs. Instance Variables
- Static Class Methods
- Static Class Methods
- Static Initializers
- The final Keyword
- Abstract Classes
- Abstract Class – An Example
- Interface
- Interface – An Example
- Access Modifiers
- Using == vs. equals()
- The toString() method
- Covariant Return Types
- Inner/Nested Classes
- Kinds of Inner Classes
- Inner Classes - an Example
- Generics
- Generics-Example
8. Exceptions
- Objectives
- What is an Exception
- Benefits
- How to Work With Exception
- An Example
- The try-catch-finally Statement
- Flow of Program Control
- Checked Exceptions
- Unchecked Exceptions
- Catching Multiple Exceptions
- Rethrowing Exceptions
- Exception Thrown by a Method
- The Exception Class
- Creating your Own Exception
9. Stream I/O
- Objectives
- File I/O
- The File Class
- File Example
- Input Stream
- Input Stream Methods
- Output Stream
- Output Stream Methods
- DataInputStream & DataOutputStream
- DataInput Stream
- DataOutputStream
- FileInputStream & FileOutputStream
- FileInputStream Methods
- FileOutputStream
- FileOutputStream/DataOutputStream
- FileInputStream/DataInputStream
- Reader and Writer
- Why use Reader and Writer ?
- Reader Example
10. Servlets
- Objectives
- Java Servlet
- Responsibilities of a Servlet
- The Servlet Life Cycle
- The Servlet Life Cycle-Cont’d
- First Servlet - HelloWorld
- First Servlet - HelloWorld
- Retrieving Form Fields
- Retrieving Form Fields – an Example
- Session Tracking
- Session Tracking – an Example
11. JavaServer Pages (JSP)
- Objectives
- What are JavaServer Pages
- JSP Benefits
- How JSP Works
- JSP Invocation
- First JSP – hello.jsp
- Invoking hello.jsp
- Compiled JSP Servlet Code
- JSP Expressions
- JSP Scriptlets
- JSP Scriptlet – An Example
- Implicit Objects
- Hello JSP World – An Example
- JSP Directives
- Attributes of Page Directive
- Page Directive – An Example
- Retrieving Form Fields – An Example
- Session Tracking - An Example
- Servlet to JSP Communication
12. Enterprise JavaBeans Programming –Overview
- Objectives
- Needs for EJB
- What are EJBs?
- Characteristics of EJBs
- The EJB Architecture
- EJB Server
- EJB Containers
- EJB Classes and Interfaces
- Enterprise JavaBeans
- Session Beans
- Entity Beans
13. JDK 1.4 Features
- JDK 1.4 – New Features
- Control Flow of Logging
- Loggers
- Logging Example
- Logging API - Handlers
- Logging API – Formatters & Log Manager
- Example Logging Configuration File
- JDK 1.4 - JAXP
- JDK 1.4
- JDK 1.4 - Assertions
- When to use Assertions
- Enabling Assertions
Appendix A. The AWT
- Abstract Window Toolkit
- Foundations of AWT
- Components
- Containers
- Creating an Empty Frame
- Layout Manager
- Adding a Component
- Absolute Positioning
- Common Layout Manager
- FlowLayout
- BorderLayout
- GridLayout
Appendix B. The AWT Event Model
- The AWT Event Model
- Terminology
- Event Handling
- How to implement?
- Multiple Event Source
- Multiple Listener
- Event Adapters
- Which to Use?
- How to Use?
- Inner Class
- Continuation of Inner Class
- Anonymous Class
Appendix C. AWT Components
- AWT Components
- The Component class
- Container and Components
- Button
- Code - Button
- Label
- Code - Label
- Text Components
- TextField
- Code - TextField
- TextArea
- Code – Text Area
- Checkbox
- Code - Checkbox
- CheckboxGroup
- Code - CheckboxGroup
- Choice
- List
- Code - List
- Canvas
- Code - Canvas
- Menu Components
- Code – Menu Components
Appendix D. Java Foundation Classes (JFC)
- Java Foundation Class (JFC)
- What is JFC?
- Swing
- Swing Hierarchy
- Building GUI with Swing
- Swing Code
- More on Swing Code
- To Convert AWT to Swing
- JComponent
- Limitations of Swing
- Separable Model Architecture
Appendix E. Applets
- Applet
- What is an Applet?
- Applets vs. Applications
- Applet Security
- Writing an Applet
- Life Cycle of an Applet
- Our First Applet
- Basic HTML for an Applet
- AppletViewer
- AWT Painting
- Applet Tags
- Example of Reading Parameters
- Applet and AWT
- Applets and AWT (continued)
- More on Applet Tag
Minimum Hardware Requirements
- 733MHz CPU
- 512MB memory
- 4 Gig hard disk space
- It is preferable to have Internet access from the students' PCs, but the class can be run without it.
Minimum Software Requirements
- Windows 2000 SP4/Windows XP SP1
- Oracle JDeveloper 10g available from http://www.oracle.com/technology/software/products/jdev/index.html
|