Loading…

What value does enabled receive when it is omitted from the annotation usage?

public @interface Audit {
    String action();
    boolean enabled() default true;
}

@Audit(action = "CREATE")
void createUser() {
}

Exercise review

Mentor
We can discuss the current task or any Java theory. I’ll help you understand it and find the next step.
Sign in to use the Mentor The Mentor uses the current exercise and your conversation history.
Sign in