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 question from abhilash's quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "question from abhilash Watch "question from abhilash New topic

question from abhilash's quiz

Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
Question 6.

An Interface can never be private or protected.



the answer given is is because of inner interfaces? i think yes
Ankit Garg

Joined: Aug 03, 2008
Posts: 9466

Yes, top level classes and interfaces can only be marked public or package visible...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: question from abhilash's quiz
It's not a secret anymore!