This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
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.
Have you checked out Aspose?
subject: interface
It's not a secret anymore!