This video covers one of the java tricks related to exception handling in java.Here will discuss how to handle multiple exceptions inside a single catch block.This is a java 7 new features and by using it we can handle multiple exceptions inside a single catch block.
In exception handling , The way we handle exception is by using try and catch where we will wrap all our risky codes inside a try block followed by multiple no of catch block.But from java 7 we can write multiple exceptions inside a single catch block.We can achieve this by using java bitwise operators.
So in this tutorial we will see a complete exception handling program in java which will cover the below things :
1..First we will cover some basics on try and catch in java.
2.Then will try to throw exception(checked exception/unchecked exception) like nullpointerexception,arithmetic exception and
,array index out of bound exception and will see how to handle it inside a same catch block.
Lets learn exception handling in java with examples and lets investigate how java catch multiple exceptions in exception handling.
Few links to my other tutorials:-
uses of this keyword in java || 3 uses you must know: • uses of this keyword in java || 3 use...
iInterface(java 8) || Default Method || learn with realtime code :
• INTERFACE IN JAVA 8 with REAL TIME co...
this/this() real-time use :
• Real time usage of this() constructor...
follow us @ facebook:
/ seleniumexpr. .
Credits:
Music: Jazz In Paris - Media Right Productions: • Jazz In Paris – Media Right Productio...
On this page of the site you can watch the video online [JAVA NEW FEATURE] handling multiple exceptions inside a single catch block || try and catch in java with a duration of hours minute second in good quality, which was uploaded by the user Selenium Express 25 September 2017, share the link with friends and acquaintances, this video has already been watched 10,654 times on youtube and it was liked by 192 viewers. Enjoy your viewing!