Multiple Choice
Which of the following is a similarity between ordinal( ) and compareTo( Enum eObj ) ?
A) Both return enum
B) Both return 0 if two objects are the same
C) Both return int
D) Both set the default value as 0
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: Accessor methods take no parameters.
Q3: A method of a class can access:<br>A)
Q4: Javadoc recognizes two types of tags: block
Q5: static methods can call non-static methods.
Q6: The access modifier of accessor and mutator
Q8: The enum objects are instantiated as constant
Q9: The default constructor takes no parameters.
Q10: What are the three access modifiers?
Q11: Block tags start with the character @.
Q12: Static data belong to the class, rather