Page 1 of 1

About Question enthuware.ocpjp.v8.2.1508 :

Posted: Wed Nov 13, 2019 3:49 am
by timwaagh
this one seems bugged. i just get a bunch of code with no blanks then bunch of blanks just below the words we're allowed to fill in.

Re: About Question enthuware.ocpjp.v8.2.1508 :

Posted: Wed Nov 13, 2019 4:50 am
by admin
Could you please post a screen shot?

Re: About Question enthuware.ocpjp.v8.2.1508 :

Posted: Tue Dec 10, 2019 4:19 pm
by Bhaskar
Hi! So can we say that the enums implementation of compareTo method sorts the elements by their ordinal?

Re: About Question enthuware.ocpjp.v8.2.1508 :

Posted: Wed Dec 11, 2019 12:14 am
by admin
Yes, that is another way of saying it. The ordinal of an enum constant is as per the order in which the enum constants are defined. The ordinal of the first enum constant is 0.