jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface regarding..." Watch "Interface regarding..." New topic

Interface regarding...

Lalit G

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.

Jim Yingst

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...
It's not a secret anymore!