Null Pointer Exception :
Null Pointer Exception is a Runtime Exception. In Java, a special null value can be assigned to an object reference. Null Pointer Exception is thrown when program attempts to use an object reference that has the null value.
How to avoid the NullPointerException?
To avoid the NullPointerException, we must ensure that all the objects are initialized properly, before you use them. When we declare a reference variable, we must verify that object is not null, before we request a method or a field from the objects.
ArrayIndexOutOfBounds Exception:
Java supports creation and manipulation of arrays, as a data structure. The index of an array is an integer value that has value in interval [0, n-1], where n is the size of the array. If a request for a negative or an index greater than or equal to size of array is made, then the JAVA throws a ArrayIndexOutOfBounds Exception. This is unlike C/C++ where no index of bound check is done.
ArithmeticException - • Arithmetic Exception and NumberFormat...
Checked and Unchecked - • Exception handling in java Hindi | Ch...
our channel - robust coders
type - programming languages
https://www.robustcoders.com
join online training
contact us - 8279883731
On this page of the site you can watch the video online Null Pointer Exception | Array Index Out Of Bounds Exception | Runtime Exception in Java | by-Rajeev with a duration of hours minute second in good quality, which was uploaded by the user Robust Coders 20 April 2021, share the link with friends and acquaintances, this video has already been watched 344 times on youtube and it was liked by 11 viewers. Enjoy your viewing!