Home / DeveloperSection / Tag
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Exceptions are categorized into two main types that are checked exceptions and unchecked exceptions.
Exceptions are important to control over error handling Exception handlings are used to change the execution of a code if a specified error occurs.Her
Exception Handling in Java: Understanding throws with ExampleLet’s look at the example shown here so we can better understand this feature. import
In Java, exceptions are broadly classified as: Checked ExceptionsUnchecked Exceptions Sometimes, the checked exceptions are also called compile-tim
In this post we are going to learn a very common practice developers usually follow when they are dealing with Exception handling. There is very handy
The exceptions we have seen so far are synchronous in nature, in the sense that we know the point in the program where they occur and when they happen, and we process them immediately in the same thread.
Looking at Murphy’s Law, “If anything simply cannot go wrong, it will anyway,” we know that we should always prepare ourself for the worst-case scenario.
We can easily catch and handle errors in our programs so that they do not terminate abnormally. When a program terminates abnormally, typically it dum
In my previous post, we have learnt how we can handle multiple exceptions in our code by providing multiple numbers of catch block specific to a particular exception.
In the program example discussed in the previous post (multiple catch blocks section), we made a URL connection to read the home page contents from the user-specified URL.