Question: Which is the first line to not compile? A. Line m1 B. Line m2 C. Line m3 D. Line m4 E. None of the above

Which is the first line to not compile? 

interface Building { default Double getHeight () { return 1.0; } //

A. Line m1

B. Line m2

C. Line m3

D. Line m4

E. None of the above

interface Building { default Double getHeight () { return 1.0; } // m1 } interface Office { public default String getHeight() { return null; } // m2 } abstract class Tower implements Building, Office {} public class Restaurant extends Tower {} // m3 // m4

Step by Step Solution

3.44 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In the Java code snippet provided the problem arises at line m3 with the Tower class declaration ... 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!