The assignment Operator is an exception for arrays. In this case i value in array[i++] gets incremented after the assignment operator i=6 now. next ++i of the expression gets incremented (value is 7 ) now. then i++ which is ( 7+7 ) The result is 14. Think a bit ul find it logical
For accessing the members of class A you must have 1. A instance of class A 2. U must extends class A If any one of this is implemented you can access the public variables.
Only line 7 of the code is unreached,since it has reached the finally block. But the return value at the end of the function is required since the return type for the method is specified otherwise it fires an eroor