Question: Given the following source code, which comment line can be uncommented without introducing errors? Select the one correct answer. (a) (1) (b) (2) (c) (3)
Given the following source code, which comment line can be uncommented without introducing errors?

Select the one correct answer.
(a) (1)
(b) (2)
(c) (3)
(d) (4)
abstract class MyClass { abstract void f(); final //final } protected static int i; private int j; final class MyOtherClass extends MyClass { //MyOtherClass (int n) { m = n; } } void g() {} void h() {} public static void main(String[] args) { MyClass mc = new MyOtherClass(); } void f() {} void h() () // void k () { i++; } //void 1() { j++; } int m;
Step by Step Solution
3.32 Rating (158 Votes )
There are 3 Steps involved in it
c Line 3 void k i can be reinserted without introducing errors Reinserting line 1 will cause the ... View full answer
Get step-by-step solutions from verified subject matter experts
