Enums

Report a typo

Enum class in Java standard library is declared as follows:

public abstract class Enum<E extends Enum<E>> implements Comparable<E>

Here's a less complicated version:

public abstract class Enum<E> implements Comparable<E>

Why would this change be a bad idea?

Select one option from the list
___

Create a free account to access the full topic