aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "interface" Watch "interface" New topic
Author

interface

pree sree
Ranch Hand

Joined: Jul 27, 2002
Posts: 34
this is a ? from http://www.angelfire.com/or/abhilash/Main.html
6)An Interface can never be private or protected.
Answers
True
False
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,

HTH
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...
Thanks
Barkat
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: http://aspose.com/file-tools
 
subject: interface
 
Similar Threads
FlowLayout
I need Abhilash Mock Test's Answers.
SCJP doubt
links to Abilash site, Free Beta exam
Private/Protected interfaces