at line 1, the value of 2 is assigned to index.
So basically line 1 will be like this....
getArray()[2]++;
getArray method returns null. Since u r retrieving third element of int array which is null. U will get get NullPointer exception, if u print it in catch by printStackTrace() mthod.
But since ur catch is empty, it does nothing and after catch normal execution follows.... and u will get the of value of index 2.
regards
Naseem.K