JAVA Why dont you need to declare that your method might thr

JAVA* Why don’t you need to declare that your method might throw an IndexOutOfBoundsException?

Solution

yes there is no need of declaring that your method might throw an IndexOutOfBound exception beacuse it is a run time exception as a good programmer you can avoid it .

but coming to the checked exceptions we cannot ,because they rellated to environmental problems

JAVA* Why don’t you need to declare that your method might throw an IndexOutOfBoundsException?Solutionyes there is no need of declaring that your method might t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site