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