Page 1 of 1

Text enhanced on OCP 1Z0-815 BOOK Deshmukh, Hanumant Page 250

Posted: Sun Feb 23, 2020 11:00 am
by javiut
States correctly that in page 250 the variables on the interface and public by default but also a static + final i think it would be great if that would be added to it.

Code: Select all

interface Movable{
    int STEP=10;
}
In transformed into

Code: Select all

interface Movable{
    public static final int STEP=10;
}
:) :P

Re: Text enhanced on OCP 1Z0-815 BOOK Deshmukh, Hanumant Page 250

Posted: Sun Feb 23, 2020 11:47 am
by admin
Good suggestion but this section is about access modifiers and also, upto page 250, static is not discussed. The book makes the whole thing clear in section 13.1.1 when it discusses interfaces in detail (see page 309).