Nusrat Jahan Nisha (152-15-6023)Raisa Tabassum (152-15-6022)Sumiya Sarah (152-15-5689)Susmita Sen (152-15-6027)
Fatema Zannat (152-15-6048)Umme Sabiha Alma (152-15-6031)
THE QUEEN BEES
APPLICATION OF
ExceptionException handling Nature of ExceptionHow exception can be handledAdvantages & disadvantagesConclusion
TOPICS OF DISCUSSION:
EXCEPTION
A process that used in responding to the occurrence, during computation of exceptions : anomalous or exceptional conditions requiring special processing
changing the normal flow of program execution
EXCEPTION HANDLING?
Exceptions due to programming errorsclient code errorsresource failures
NATURE OF EXCEPTIONS
Null pointer Errors: Runtime Exception
EXCEPTIONS DUE TO PROGRAMMING ERRORS
Illegal Exception ErrorA runtime error
EXCEPTIONS DUE TO PROGRAMMING ERRORS
Sumiya Sarah 152-15-5689
Client code attempts something not allowed by the API
This Exception contains useful information about the location in the XML document that causes the problem
The client can use this information to take recovery steps.
EXCEPTIONS DUE TO CLIENT CODE ERRORS
EXCEPTIONS DUE TO CLIENT CODE ERRORS
EXCEPTIONS DUE TO CLIENT CODE ERRORS
Umme Sabiha Alma 152-15-6031
Exceptions that get generated when resources fail
system runs out of memory , or a network connection fails
EXCEPTIONS DUE TO RESOURCES FAILURES
EXCEPTIONS DUE TO RESOURCES FAILURES
Raisa Tabassum152-15-6022
Susmita Sen152-15-6027
Keywords used in exception handling:
Try CatchFinallyThrowThrows
HOW EXCEPTION CAN BE HANDLED
Fatema Zannat152-15-6048
Throw: System-generated exceptions are automatically thrown by the Java run-time system.
Throws: If a method is capable of causing an exception that it does not handle, it must specify this behavior so that callers of the method can guard themselves against that exception.
THROW AND THROWS
Identifies Error TypesSeparate error, handling codes from normal code
Clarifies the code and enhances readability
Makes clear and fault-tolerate program
ADVANTAGES
Exception handling can never be a disadvantage, you either need it or you don't in which case your application can crash.
DISADVANTAGES
THANK YOU