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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
javiut
Posts: 37
Joined: Fri Oct 19, 2012 10:48 am
Contact:

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

Post 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

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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).

Post Reply

Who is online

Users browsing this forum: vs2013 and 16 guests