Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface regarding...

 
Lalit G
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody pls tell me the ans of follwing que.

Q)An Interface can never be private or protected.
Answers -> 1)True Or 2) False
Thanx in advance.
Lalit

 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does this have to do with I/O and Streams? I'll move it to Java i General (Beginner)...
 
Roy Tock
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is FALSE. One can create protected or private member interfaces. Check out section 9.1.1 of the Java language specification at http://java.sun.com/docs/books/jls/second_edition/html/interfaces.doc.html#35470 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic