Java-111- Fundamental of Exceptions & Errors in Java || Java Programming

111 Просмотры
Издатель
Fundamentals of Exception in Java
Errors:
Errors are unavoidable event of any development process this can even be a typing error.
There are two types of errors:
1) Compile time errors
2) Run time errors

Compile Time Errors:
Compile time errors are those errors which can be detected by the compiler during compilation process.
These type of errors are mainly occurs due to typing mistakes, like syntax error,missing semicolons,brackets etc.

Run Time Errors:
Runtime errors are those errors that occurs during execution of a program.
Runtime errors are nightmare for programmers. They can create serious problems, like producing wrong results or often abruptly terminates the program.
Some common Runtime errors are: Divided by zero, arithmetic exception, NullPointer Exception etc.

What is Exception ?
Exceptions are abnormal condition that may occur during execution of a program.
Exceptions disrupts the normal flow of program execution.

There are two types of exception:
1) Checked Exception: are handled by writing codes inside the try & catch blocks.
2) Unchecked Exception: such exceptions are handled by the JVM.


Hey ! Thanks for watching this video..
for more you can also visit my -

twitter: https://twitter.com/rapid_tutor

facebook: https://www.facebook.com/RapidTutor-106765660738888/

Keep Learning Keep Growing with Rapid Tutor..
#ExceptionsInJava #ErrorsInJava #JavaProgramming
Категория
Язык программирования Java
Комментариев нет.