Job offers
Companies
Tests
Blog
I'm an employer
Sign up
Log in
Group 2@2x
Created with Sketch.
Home
>
IT Tests
>
Questions
>
What are the modifiers that cannot be used with enums in Java?
Question from the Java - Fundamentals test
What are the modifiers that cannot be used with enums in Java?
Start test
See the Java - Fundamentals test
Medium
Enums cannot be declared:
private
public
static
final
View the correction
Author: Xiaoyu
Status: Published
(Update)
Question passed 825 times
Edit
-1
Community Evaluations
Emmanuel ARON-SAMUEL
24/04/2024
J'ai eu partiellement correct pour "final" alors qu'une enum peut ĂȘtre dĂ©clarĂ©e avec final ...
Incorrect answer
Tom
01/05/2024
Une enum ne peut pas ĂȘtre dĂ©clarĂ©e static mais elle peut ĂȘtre dĂ©clarĂ©e private, public et final
Emmanuel ARON-SAMUEL
01/05/2024
Du coup j'aurai du avoir faux et non partiellement correct.
Tom
01/05/2024
Oui je suis d'accord sur ce point, je pense qu'il y a un problĂšme sur cette question
Similar Questions
More questions about Java
15
Write a Java program that prints 'welovedev'.
8
How should a package be named in Java?
5
How to concatenate two strings of characters in Java?
3
What is the difference between an interface and an abstract class in Java?
3
Write a valid code comment in Java
Load 5 more similar questions