• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question from abhilash's quiz

 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, top level classes and interfaces can only be marked public or package visible...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic