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?

abstract class MyClass { abstract void f(); final //final } protected static

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

1 Expert Approved Answer
Step: 1 Unlock

c Line 3 void k i can be reinserted without introducing errors Reinserting line 1 will cause the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!