Question: Which is the first line to fail to compile? A. r1 B. r2 C. r3 D. r4 E. r5 F. None of the above class

Which is the first line to fail to compile? 

class Tool { } private void repair() {} void use() {} }

A. r1

B. r2

C. r3

D. r4

E. r5

F. None of the above

class Tool { } private void repair() {} void use() {} } // r1 // r2 class Hammer extends Tool { private int repair() { return 0; } // r3 private void use () {} // r4 public void bang() {} // r5

Step by Step Solution

3.38 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code snippet shown in the image depicts two classes Tool and Hammer The Hammer class is a subcla... 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 Oracle Questions!