Hi guys just wanting some help with exceptions. I understand the try and catch concept but I struggle more with the throw and throws concept, it is my understanding (that may be incorrect), that you a method can be like
public class thisMethod throws whateverException
Am I right in thinking that 'whateverException' is a written exception class? Now I dont understand any further than this or why it would be done.
And what is the purpose of the throw and catch idea? is it that you want the error to be controlled in the right class of your code?
Thanks in advanc e guys