Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
throws - you use it after the method name to indicate that your method "throws" or will throw an exception. throw - is used typically inside the method when you actually "throw" an exception. sometimes you will need to follow it with "new" keyword if you have not created an Exception object yet.
1st Aug 2016, 11:53 AM
jax502