What is the result of attempting to compile the following code and then execute the class Outward? 1. class Outward { 2. final int i = 10;//LINE 1 3. 4. public static void main(String[] args) { 5. new Outward (); 6. } 7. 8. Outward { 9. (new Inward()).foo(); 10. } 11. 12. class Inward { 13. void foo() { 14. int i = 20; 15. System.out.println("i = " + i); 16. } 17. } 18. } D) Line 15 prints out "i = 20". Correct selection is: D The code has two variables with the name "i". The one with the innermost scope (on line 14) shadows the one on line 2, so line 15 prints out "i = 20". DOUBT: WHY DOES SHADOWING OCCUR HERE AND WHY DOES IT NOT OCCUR IF I REMOVE FINAL FROM LINE 1. IT IS SAID THAT FINAL VALUES CANNOT BE ASSSINGED ONCE AGAIN BUT HERE IT IS REDECLARED. Thanks in advance Padmini