aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "interfaces" Watch "interfaces" New topic
Author

interfaces

Kourosh Keshavarzi
Ranch Hand

Joined: Oct 23, 2000
Posts: 66
Are variables in an interface implicityly just static and public
or are the static public and final.

Kourosh Keshavarzi
Ranch Hand

Joined: Oct 23, 2000
Posts: 66
In general what modifiers are allowed to be used if you want to overide the default modifiers.
thanks
Bin Zhao
Ranch Hand

Joined: Oct 04, 2000
Posts: 73
Yes,variables in interface implicitly are public,static final.
Mary Anitha
Greenhorn

Joined: Oct 13, 2000
Posts: 23
Originally posted by Kourosh Keshavarzi:
In general what modifiers are allowed to be used if you want to overide the default modifiers.
thanks

In general default,protected or public are allowed to override a method with a default modifier

[This message has been edited by Mary Anitha (edited October 28, 2000).]
Mary Anitha
Greenhorn

Joined: Oct 13, 2000
Posts: 23
I would like to add that
methods in an interface are implicitly public and abstract

Originally posted by Bin Zhao:
Yes,variables in interface implicitly are public,static final.

Kourosh Keshavarzi
Ranch Hand

Joined: Oct 23, 2000
Posts: 66
Thanks Bin and Mary
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: interfaces
 
Similar Threads
What is the difference between these methods?
final static int i =0 Whizlabs says i is variable and i feel it is a constant
Chapter 7 q 13 s&k book
class 1
locking style