Page 1 of 1

[HD Pg 204, Sec. 8.4.4 - applying-access-modifiers-to-members-of-an-enum]

Posted: Wed Feb 13, 2019 7:40 pm
by OCAJO1
What happens if in an enum

private int value;
public void count(){
}

are changed to

int value;
void count(){
}

Are they treated as package private, like in a class?

Re: [HD Pg 204, Sec. 8.4.4 - applying-access-modifiers-to-members-of-an-enum]

Posted: Wed Feb 13, 2019 9:34 pm
by admin
Correct. (Not important for OCAJP exam.)