File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Interface regarding... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface regarding..." Watch "Interface regarding..." New topic
Author

Interface regarding...

Lalit G
Greenhorn

Joined: Jul 02, 2001
Posts: 6
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

Joined: Jan 30, 2000
Posts: 18671
What does this have to do with I/O and Streams? I'll move it to Java i General (Beginner)...


"I'm not back." - Bill Harding, Twister
Roy Tock
Ranch Hand

Joined: Jul 16, 2001
Posts: 83
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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interface regarding...