Exception handling throw keyword in java in hinglish

Published: 01 January 1970
on channel: Tarun Sir
68
2

In this video you will learn that what is throw keyword and how to use it in java.

Java throw keyword
• The Java throw keyword is used to explicitly throw an exception.
• We can throw either checked or uncheked exception in java by throw keyword.
• The throw keyword is mainly used to throw custom exception. We will see custom exceptions later.
The syntax of java throw keyword is given below.
throw exception;
Let's see the example of throw IOException.
throw new IOException("sorry device error);

Learn C Language from beginning
   • learn c programming in Hinglish.  

Learn C++ from beginning
   • Introduction to c++ | Creating first c++ p...  

Learn Java from beginning
   • Java Tutorial For Beginners In Hindi | Dow...  

Learn Python from beginning
   • introduction to python, download and install  

Learn PHP from beginning
   • Introduction to php | getting started with...  

Connect me on linkedin
  / tarrunverrma  

Connect me on instagram
  / the_ultimate_coding_stuff  

Follow me on twitter
  / tarrunverrma  

Join my telegram channel
t.me/tarunvermasir

#tarunsir #javatutorial #learnprogramming #coding #java #exception #throw


On this page of the site you can watch the video online Exception handling throw keyword in java in hinglish with a duration of hours minute second in good quality, which was uploaded by the user Tarun Sir 01 January 1970, share the link with friends and acquaintances, this video has already been watched 68 times on youtube and it was liked by 2 viewers. Enjoy your viewing!