File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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 .
I agree. Here's the link:
subject: Interface regarding...
It's not a secret anymore!