when to use " throws " keyword ?
When your method has the possibility of throwing multiple exceptions..for example array
out of bound,arthematic exception etc..
Any method capable of causing exceptions must list all the
exceptions possible during its execution, so that anyone
calling that method gets a prior knowledge about which
exceptions to handle. A method can do so by using the