Question 6 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 6 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

abstract class Planet {
protected void revolve() { //line

)

abstract void rotate (); //line
}

class Earth extends Planet {
void revolve() { //line

)

protected void rotate() { //line
}

nl

n2

n3

n4

Which two modifications, made independently, enable the code to compile?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CD.