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.
2) I had initialized String arrays of size 20 whereas arrays can contain only 1-10 values. Now i have initialized arrays dynamically according to number of actual number of elements in array. Hence the chances of the oracle array containing null values got minimized.