When is an enum instance created in java?
- When application loads/application startup?
- Or is it lazy loaded i.e. it will be created only when it is required for the first time?
If I never use an enum instance in my application, will it still be created and consume memory?