Creating Classes in Java 2
Overview/Description
To explain the use of objects and how to create classes in Java
Target Audience
Programmers wishing to learn the fundamentals of the Java language; more experienced Java programmers studying for the Sun Certified Programmer for the Java 2 Platform exam
Prerequisites
Some knowledge of programming principles; experience in another programming language (e.g. Visual Basic, C, C++) would be useful
Expected Duration
230 Minutes
Objectives:
Creating Classes in Java 2
describe software objects and classes, and outline the benefits of an object-oriented programming approach.
outline the principles of inheritance in Java, including what is meant by polymorphism.
declare, instantiate, and use objects.
describe the function of the main method in a Java application, including the use of command-line arguments.
create a Java class, including its methods, constructors, and variables.
outline how Java's garbage collection system works, and be able to explicitly make objects available for collection.
create a simple object-oriented application.
explain the function of packages in Java, and show how to import packages in a Java source file.
use Java's access modifiers to specify which code can access their classes, variables, and methods.
explain how to extend a Java class.
create a class that extends another Java class.
correctly use class and instance members in their code.
use Java's final and abstract modifiers.
explain Java interfaces, and create a class that implements an interface.
create inner classes, static inner classes, local inner classes, and anonymous inner classes.
Course Number: 31649_eng