posted 9 years ago
I created a constructor inside an enum, just curious to know that how actually it is working?
I just initialized the Computer c = Computer.PERSONAL and constructor is getting invoked two times.
No matter, now many instances i should create apart from compObj, but the constructor is getting invoked 2 times only.
Can any body help me on this logic, how its working?