You are on page 1of 7

FORGET ALL BORING BOOKS JUST SEE THE CONCEPT

PLAY WITH JAVA AND HAVE FUN

MAY I HELP YOU

MAY I HELP YOU

MAY I HELP YOU

I am unexpected And I will interrupt the match


CRICKET MATCH

AUDIENCE

CRICKET MATCH

AUDIENCE

AUDIENCE
CRICKET MATCH

AUDIENCE
Compiling & Executing

I am unexpected And I will interrupt the match

Winner announced using Duckworth Rule

AUDIENCE

CRICKET MATCH

AUDIENCE

AUDIENCE
CRICKET MATCH Handling Mechanism Added

AUDIENCE
Compiling & Executing

AUDIENCE
Match Interrupted by rain

CRICKET MATCH

Match organizing committee decides

AUDIENCE No Interruption AUDIENCE


Duckworth Rule

Team Having Lunch


WINNER

CRICKET MATCH

AUDIENCE

The one who beat


Exception Occurred No Exception Catch Section Normal Flow

Java Source code

Exception Handled

Finally

Finally Block

Try Section

Program executes properly

Fruit storage

Throwable Class

Fully rotten

Partially Rotten

Error

Exception

Compiletime Exception
Difference between Error and Exception ERROR : Error subclasses represent "serious" errors that a program generally shouldn't expect to catch and recover from. EXCEPTION : Exception subclasses represent errors that a program can reasonably recover from.

Runtime Exception

Null pointer exception


Divide by zero exception

File not found exception Array index out of bound Exception

Class cast exception

Java STUFF
The quantity cannot be accommodated

int a[] = new int [100]; a [101] =100;

The defined size of glass is small

//This line will throw an exception called array indexed out of bound exception //Trying to insert number of values that exceeds array size

You might also like