There is one mistake in the code if the value of i is set to 0 then at line number 17 we are dividing 18/0 at that time it will throw "ArithmeticException " but we aren't handling that exception, we are handling "NavinException" at that time if we run the code then the Exception class will handle that exception.
Without throw try only sends some default exceptions e.g. "divide by zero exception"but what if you have to create your own exception e.g. "divide by one exception"in that case we will use throw with if else .
Thank you Sir. You, along with another channel's 10 miuntes video, managed to explain what my college professor couldn't in 2 hours.
1:28 "...and now it is not crying.. " 😂
I like how you teach us how to think!!!!! most RUclips tutorials dont
Awesome sir❤🩹
Lotzz of love from Andhra🤗
There is one mistake in the code if the value of i is set to 0 then at line number 17 we are dividing 18/0 at that time it will throw "ArithmeticException " but we aren't handling that exception, we are handling "NavinException" at that time if we run the code then the Exception class will handle that exception.
No,the class Navinexception will handle not the class Exception
such a great explanation, thankyou sir!
Thanks Navin anna
Good explanation
without throw we can get the exception right then why throw is required?
Without throw try only sends some default exceptions e.g. "divide by zero exception"but what if you have to create your own exception e.g. "divide by one exception"in that case we will use throw with if else .
Why do we need a custom exception even when we could use if-else ?
Why do I need to add "serialVersionUID" ? It's because I have never Java version?
exception occurs while explaining exception
Getting error string
and now it is not crying😂😂
Navin Is A Gujtari Word😅
yes , we oftenly use "navin" if we want to know that : tell me if anything new happened?.
If you don't know how to tech then go first and learn in proper way
Best tutorial ..I have been watching your tutorials since last 3 years ..and your explanation style is excellent.👌🫡