10.7 Exception Handling in Java Practical Part 5 Throw and Throws

Java

Video is ready, Click Here to View ×


Throws is keyword in Java which is used to suppress the errors/ exceptions. And it should write after the main method itself. To forcefully throw error, we can use throw keyword. And also we have to mention what type of error we want to throw.

Check out our website: http://www.telusko.com

Follow Telusko on Twitter: https://twitter.com/navinreddy20

Follow on Facebook:
Telusko : https://www.facebook.com/teluskolearnings
Navin Reddy : https://www.facebook.com/navintelusko

Follow Navin…

18 thoughts on “10.7 Exception Handling in Java Practical Part 5 Throw and Throws

  1. what does supressing the error means… i also have to use catch with throws keyword then why should i use throws ….i can use try becoz in both condition we have to catch the execption…. please make it a little bit more clear

Leave a Reply

Your email address will not be published. Required fields are marked *