| Author |
enum clarification
|
Garlapati Ravi
Ranch Hand
Joined: Mar 05, 2008
Posts: 168
|
|
can anyone tell me why "inside enum" is printed thrice ?
|
Ravi Kumar
SCWCD 5 - 89%, SCJP 1.4 - 90%
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
There are three enum constants (BIG, HUGE, OVERWHELMING). For each of those, an instance of the enum is made and the constructor is called.
Note: When you copy a question from a book, mock exam or other source, you are required to quote your sources. Please tell us where you copied this from.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Garlapati Ravi
Ranch Hand
Joined: Mar 05, 2008
Posts: 168
|
|
oh, yeah lately realised. that was a silly question. Thanks!
I have copied that from my EditPlus editor
These terms(BIG, HUGE, OVERWHELMING and CoffeeSize) i have copied from Kathy and Bert SCJP book.
|
 |
 |
|
|
subject: enum clarification
|
|
|