Skip to main content

Posts

Showing posts from 2020

Exception handling and java keywords

Exception: Exception in a programming language and in English language is pretty similar. Exception means being different from or not following the rules. And in programming language like Java, exception is  an event which occurs during the execution of a program that disturbs the complete flow of application or program. When something beyond expected happens while executing a program is considered as an error. handling these errors or abnormality is called as Exception handling. Exception Handling: Exception handling in java is managed with the help of java keywords and java API support..              1. Java Keywords             2. Java API support Java Keywords:   There are 5 keywords in Java.           1. Try           2. catch           3. finally           4. throw    and 5. throws These five keywor...