 Hello friends, I am Sanjay Gupta. In this video, I am going to discuss list of checked and unchecked exceptions in Java. Before starting, you can subscribe my YouTube channel by clicking on the bottom right corner of this video. You can download my app Takimiz that is available on Google Play. You can connect with me by following the details which are available in front of you. Now coming on to the point. In this video, I am going to discuss checked and unchecked exceptions which are available in Java. So first understand the concept and then I will be showing the list of checked and unchecked exceptions. So first point says all exception types that are direct or indirect subclasses of the class runtime exception are unchecked exceptions. Second point says all classes that inherit from the class exception but not class runtime exceptions are considered to be checked exceptions. So this is the small difference between checked and unchecked exceptions. Third point says classes that inherit from class error are considered to be unchecked. The compiler checks each method call and method declaration to determine whether the method throws checked exceptions. If so, the compiler ensures that the checked exception is caught or is declared in a throws clause. So friends, after knowing this simple difference which is written in first and second point, fourth point says if you are raising any unchecked exception, then it can be automatically handled by JVM or you can guard it by using try and catch. But if you are raising, if your code is raising checked exception, then it cannot be directly handled by JVM. Either you have to handle that exception using try or catch or you have to implement throws clause in the method declaration inside that exception is raised. So suppose any method is raising any checked exception, then at header declaration you have to use throws clause so that caller of that method can handle that check exception. If you are not doing so, then compiler will generate a syntax error. And in case of unchecked exception, if you are not handling any exception, then it will be automatically handled by JVM. So there are two differences between checked and unchecked exceptions. Now after knowing the difference, you can see the list of unchecked runtime exception subclasses which are available here. So first is arithmetic exception. Second one is array index out of bound exception. Meanings are also available in second column. You can read all meanings. Array store exception, its meaning is assignment to an array element of an incompatible type. Then class cast exception invalid cast. Illegal argument exception, illegal argument used to invoke a method. Illegal monitor state exception, illegal monitor operation such as waiting on an unlocked thread. Illegal state exception, illegal thread state exception, index out of bounds exception, negative array size exception, null pointer exception, number format exception, security exception, string index out of bounds exception, unsupported operation exception. So this is the list of unchecked exceptions which are subclasses of runtime exception. So if you don't handle these exceptions, these exceptions will be automatically handled by JVM. But if you want to handle these exceptions, then you can use try and catch blocks. You can study how to implement try and catch block by my other tutorials which are available in this playlist. Now this is the list for checked exceptions which you have to handle or you have to throw these exceptions for the caller of the method in which these exceptions are raised. So first is class not found exception, clone not supported exception, illegal access exception, instantiation exception, interrupted exception, no such field exception, no such method exception. So this is a list of checked exceptions that you have to handle or you have to throw to the caller of the method in which these exceptions are raised. So friends, you have to handle checked exception or you have to throw those exceptions with the help of those clause. And if you are raising any unchecked exception, then there is an option you can handle those exception or they can be handled automatically by the JVM. So this is the small comparison between checked and unchecked exceptions which are available in Java. You can subscribe my YouTube channel if you want to watch more programming related videos. Thank you for watching this video.