This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The array index out of bound exception only checks for the upper limit of your array, so you can check the upper limit of 10 easily. But I dont know if there is something in java which enables us to check the lower limit as well. But if you yourself want to check it, then may be you can write your own exception by extending Exception class.