Courses
Java
Home
Corporate
Consulting
Contact Us
Courses
Jobs
Custom Topics

Customize this course,
choose your topics

Building Your Course
Custom Order Page
Building Guidelines

Selectable Topics
Advanced Applets
Advanced AWT
Collections
CORBA
Custom Components
Drag'n Drop
Enterprise JavaBeans
Event Delegation
GridbagLayout
InfoBus
Inner Classes
Internationalization
Java 2 Overview
JavaBeans
JFC Overview
JSP (Java Server Pages)
JSP Tag Libraries (taglib)
JDBC
JNI
RMI
Security
Serialization
Servlets
Struts
Swing
WebServices Overview
XML

Inner Classes

Java 1.1 introduced a new language feature known as inner classes. There are several types of inner classes: "member classes" (including static and non-static inner classes), and "local classes" (including anonymous inner classes).

Inner classes are useful for several reasons. The inner class can be helper class to the outer class. They make some chores easy to implement. As an example, they most frequently employed as event handlers (using the AWT's event delegation model). However, they have other uses.

This module explores all of the types of inner classes, and their uses. Detailed code examples are given.

Objectives

  • Know the different types of inner classes, and recognize what circumstance dictates the use of a certain type of inner class
    • member classes
      • static member classes
      • non-static member classes
    • local classes
      • anonymous inner classes
  • Understand scoping issues associated with inner classes
    • Accessing members in outer class scope from within an inner class
    • Where an inner class can be instantiated from the outer class

Specifications

  • Duration (total): 1.5 hours
  • Duration of Exercises: 30 minutes
  • Duration of Lecture: 1 hour

Pre-requisites

  • Introductory Java knowledge, understanding of all object-oriented concepts, knowledge of static and instance members, knowledge of Vector, Enumeration are all assumed.

A table of contents of this module is available upon request.

Return to the Custom Order Page.

Copyright ©2007 by Petronio Technology Group, Inc. All rights reserved. Petronio, "Targeted Technology Training", "T3" and "Turning new technologies into your competitive advantage" are trademarks of Petronio Technology Group. All other trademarks are the properties of their respective companies.