8. What will be the output of the following Java program? final class A 2. 3. int i; 4. } 5. class B extends A 6. { 7. int j; 8. System.out.println(j + + i); 9. } 10. class inheritance 11. 12. public...


8. What will be the output of the following Java program?<br>final class A<br>2.<br>3.<br>int i;<br>4.<br>}<br>5.<br>class B extends A<br>6.<br>{<br>7.<br>int j;<br>8.<br>System.out.println(j +<br>+ i);<br>9.<br>}<br>10.<br>class inheritance<br>11.<br>12.<br>public static void main(String args[)<br>13.<br>14.<br>B obj<br>new B();<br>15.<br>obj.display();<br>16.<br>}<br>17.<br>a) 22<br>b) 33<br>c) Runtime Error<br>d) Compilation Error<br>1.<br>

Extracted text: 8. What will be the output of the following Java program? final class A 2. 3. int i; 4. } 5. class B extends A 6. { 7. int j; 8. System.out.println(j + + i); 9. } 10. class inheritance 11. 12. public static void main(String args[) 13. 14. B obj new B(); 15. obj.display(); 16. } 17. a) 22 b) 33 c) Runtime Error d) Compilation Error 1.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here