File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "interface" Watch "interface" New topic


pree sree
Ranch Hand

Joined: Jul 27, 2002
Posts: 34
this is a ? from
6)An Interface can never be private or protected.
the answer given is false.Is this true?i could not compile them.
Ashish Hareet
Ranch Hand

Joined: Jul 14, 2001
Posts: 375
Try this,

Ashish H.
[ September 03, 2002: Message edited by: Ashish Hareet ]
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Hi Pree:
I think Interface can only have public or no access specifier just like class...I do not understand how your resource is saying otherwise...
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Unless, interface is an inner interface which can have all public, protected or private access specifers just like inner classes.
I agree. Here's the link:
subject: interface
It's not a secret anymore!