Course code: CSE 214
Course title: OBJECT ORIENTED PROGRAMMING
Topic: EXCEPTIONS
 
Submitted to: Sejuti Banik
Date: 02-04-18
Submitted by-Sanjana Mun
Id- 163-15-8443
exception
An Exception can be anything which
interrupts the normal flow of the program.
When an exception occurs program processing gets terminated and
doesn’t continue further. In such cases we get a system generated error
message. The good thing about exceptions is that they can be handled.
When an exception can occur?
Exception can occur at runtime (known as runtime exceptions) as well as
at compile-time (known Compile-time exceptions).
Reasons for Exceptions
There can be several reasons for an exception. For example, following
situations can cause an exception – Opening a non-existing file, Network
connection problem.
Few examples –
 DivideByZero exception
 NullPointerException
 ArithmeticException
 ArrayIndexOutOfBoundsException
An exception generated by the
system
THANK YOU!
THANK YOU!

Exceptions

  • 1.
      Course code: CSE214 Course title: OBJECT ORIENTED PROGRAMMING Topic: EXCEPTIONS   Submitted to: Sejuti Banik Date: 02-04-18 Submitted by-Sanjana Mun Id- 163-15-8443
  • 2.
    exception An Exception canbe anything which interrupts the normal flow of the program. When an exception occurs program processing gets terminated and doesn’t continue further. In such cases we get a system generated error message. The good thing about exceptions is that they can be handled.
  • 3.
    When an exceptioncan occur? Exception can occur at runtime (known as runtime exceptions) as well as at compile-time (known Compile-time exceptions). Reasons for Exceptions There can be several reasons for an exception. For example, following situations can cause an exception – Opening a non-existing file, Network connection problem.
  • 4.
    Few examples – DivideByZero exception  NullPointerException  ArithmeticException  ArrayIndexOutOfBoundsException
  • 5.
  • 6.
  • 7.