Showing posts with label Java Member accessibility/visibility modifiers for interfaces. Show all posts
Showing posts with label Java Member accessibility/visibility modifiers for interfaces. Show all posts

Monday, 8 June 2015

Java Member accessibility/visibility modifiers for interfaces

The only member accessibility/visibility modifier that can be used with data members and methods of an interface is public

The public is also the implicit accessibility/visibility modifier for interface members i.e. the members are always implicitly assumed to be public even if we do not use the modifier public.