Package edu.pdx.cs399J.lang

This package contains example Java programs that demonstrate fundamental aspects of the Java programming language such as declaring variables, handling exceptions, and class inheritance.

See:
          Description

Interface Summary
Flies This interface is implemented by all animals that can fly.
 

Class Summary
AddTwo This program demonstrates exception handling by reading two integers from the command line and prints their sum.
Animal This class is the base class in our animal hierarchy.
Ant This class represents an ant.
Bee This class represents a bee.
Bird This class represents all birds.
Cow This class represents a cow.
DivTwo This class demonstrates throwing exceptions.
DoIFly This class demonstrate the instanceof operator and the concept of interfaces using the animal hierarchy.
Duck This class represents a duck.
Hello This class simply prints "Hello World".
Human This class represents a human being (not a human doing).
Insect This class represents an insect.
Javadoc This class demonstrates Javadoc comments
Mammal This class represents all mammals.
PassByValue Demonstrates Java's pass by value mechanism
Person This class demonstrates constructors, the toString method, and instance fields.
SayWhat This class has a main method that demonstrates the effects of inheritance and virtual method dispatches using the animal class hierarchy.
Sheep This class represents a Sheep.
Turkey This class represents a Turkey.
WhatAmI This program uses Java's reflection mechanism to print the name of a given Object's class.
 

Package edu.pdx.cs399J.lang Description

This package contains example Java programs that demonstrate fundamental aspects of the Java programming language such as declaring variables, handling exceptions, and class inheritance.

Some Java Language Resources:



Copyright © 2000-2009 Portland State University. All Rights Reserved.