About HPC Systems Software User Guides Education Partners

  / gears / hpc / education / tutorials / java / example6


Introduction

Definition

Examples

Installation

Applets

Example 01

Example 02

Example 03

Example 04

Example 05

Example 06

Object Oriented Programming

Java Security

References

Example3

  • Given: Example2.
  • Required: Exception Handling: Division by ZERO!
  • Solution:
    try
    {
    sum_error = sum/(sum-150);
    }
    catch ( DivideByZeroException exception )
    {
    showStatus( exception.toString() );
    }


Please send questions or suggestions about this web page to beatnic@aset.psu.edu

ASET | ITS | Penn State