What is the default return value of the `toString()` method in enums if not overridden?
Correct answer
The constant name
Explanation
If not overridden, `toString()` returns the constant's name as a string.
Update: Dhruva Jagannath added a tag on this question
Topics
By Dhruva Jagannath · · 39 views