A question about interface



Hello!

I'm readaing a book about Inteface and it says the following.
"Only constant fields(public,static and final) are allowed in an interface.
The public, static and final key words may be
omitted, but alla fields are still treated as public, static and final."

Does this mean that every declaration of fields in an interface have the
following only form
public static final meaning no other decarations are allowed.

//Tony



.



Relevant Pages

  • Re: A question about interface
    ... > I'm readaing a book about Inteface and it says the following. ... > omitted, but alla fields are still treated as public, static and final." ... > Does this mean that every declaration of fields in an interface have the ...
    (comp.lang.java)
  • Re: Why Re-implement Interface
    ... inteface, since Super-class already implements it? ... the inheritance tree to discover that fact. ... "unimplements" the interface on the base class without me finding out ...
    (comp.lang.java.programmer)
  • Re: sholud getters/ setters be inside interfaces?
    ... i'm just wondering should getters and setters (of at least simple ... types) be included in an inteface? ... void setName; ... If the interface involves the concept of a name, ...
    (comp.lang.java.programmer)
  • Re: sunfire v210 scsi drive upgrade with seagate ST173404LCV
    ... my system is over a year old and i don't know wether its interface ... ultra160 inteface or vice-versa for that matter? ...
    (comp.sys.sun.hardware)