What does this program print?

from Annotations
Java 25 LTS intermediate 2 min

What does this program print?

Java
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(Labels.class)
@interface Label { String value(); }

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@interface Labels { Label[] value(); }

@Label("fast")
@Label("stable")
public class Main {
    public static void main(String[] args) {
        System.out.println(Main.class.getAnnotation(Label.class));
        System.out.println(Main.class.getAnnotationsByType(Label.class).length);
    }
}
Open in playground
Report an error