Question: How many lines of the following declaration contain a compiler error? A. None B. One C. Two D. Three E. Four F. Five. 1: public

How many lines of the following declaration contain a compiler error? 

1: public @interface Student { 2: 3: 4: 5: 6: 7: }

A. None

B. One

C. Two

D. Three

E. Four

F. Five.

1: public @interface Student { 2: 3: 4: 5: 6: 7: } final boolean likesPonies = true; int value default 100; int age(); /** TODO **/ String name () default "Olivia";

Step by Step Solution

3.26 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the image shown the code snippet is attempting to declare an annotation type in Java which ... 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!