Page 1 of 1

About Question enthuware.ocpjp.v7.2.1462 :

Posted: Mon Apr 08, 2013 8:03 pm
by renatumb
I got "You answered correct", but I think my answer is wrong

public enum Seasons { SUMMER, WINTER } // my answer

class TestClass{

public TestClass(){
}
}

I think I could use protected, public or private just if the enum were inside of class TestClass{...}, right ?

Re: About Question enthuware.ocpjp.v7.2.1462 :

Posted: Tue Apr 09, 2013 5:59 am
by admin
No, public is valid in this case because the question says the file name is Seasons.java

Re: About Question enthuware.ocpjp.v7.2.1462 :

Posted: Thu Oct 15, 2015 4:24 pm
by Danny Sheridan
One of:
enum Seasons {}
enum Seasons {WINTER}
enum Seasons {SUMMER}

They are not taken as correct answers but wouldn't they satisfy the specs in the question also?

Re: About Question enthuware.ocpjp.v7.2.1462 :

Posted: Thu Oct 15, 2015 8:50 pm
by admin
Yes, you are right. Technically, they are valid. I have updated the question statement accordingly.
thank you for your feedback!
Paul.