In: Computer Science
In JAVA
Make a separate post (50 words or more for each) on two of the following topics before the Initial Post due date.
Topics (choose two, separate post for each)
How much exposure you have to java?
We can say an Exception is an event that disturbs the normal flow of execution of a program, for example, we have a program that takes two number as input return their sum but what if the user enters alphabet instead of numbers so that disturbs the flow of the program and program terminates abnormally so as a programmer we need to handle that cases so the program gives understandable output to the user what went wrong
Are Checked Exception easy or hard to understand? How are they hard to figure out? What helps you understand how they work so that you can use them?
So as we all programming languages have grown so much with modern languages there is modern method to deal with exception similarly java provides checked exception. we can say checked exception are automatically check by the compiler at the compiler stop program to begin to compile there are pretty much easy to figure out let we taken an example if we use FileReader class in our program to read from a file that there might be possibility that sometime file might not be available to the program so we need to put exception for that program doesn't shutdown abnormally in that sceanario