I have been searching web to find the answers of some of the queries related to enum class in java.
I was curious to know internals of enum class hence i open the source code and found some methods there that are as below --
protected final void finalize() { }
I found finalize method there which is a blank implementation , and not properly commented. So my query is why an enum class cannot have finalize method means is there any harm to have finalize method in enum class or is there any other reason behind this.
I am more confused after seeing this class. Any help will be appreciated. Thanks in advance.