Friday, March 26, 2010

4 - interface

a) access can be public or default

b) interfaces are implicitly abstract even if it is not specified

method-

a) are public and abstract even if specified or not

b) have no implementation end with ; instead of {}

c) cannot be static

d) cannot be final

variable

a) are public, static and final even if specified or not-- are constants

b) are assigned at the place of declaration and cannot be reassigned a new value at any other place

No comments:

Post a Comment