This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "question from abhilash Watch "question from abhilash New topic
Author

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.

Answers

True
False

the answer given is false.......it is because of inner interfaces? i think yes
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: question from abhilash's quiz
 
Similar Threads
Byte to string
Is SCWCD Adaptive?
A question on evaluation Order in S.o.p
True or False?......
hard question