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 How Are Interfaces Implemented? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How Are Interfaces Implemented?" Watch "How Are Interfaces Implemented?" New topic
Author

How Are Interfaces Implemented?

Gary Farms
Ranch Hand

Joined: Jun 24, 2000
Posts: 57
I have questions concerning Java interfaces. They are:
Q1) Must an interface be defined in a separate .java file?
Q2) Can an interface be defined in the same class file that calls
it?
Q3) Are interfaces used only for methods & data already
defined in Java supplied packages?
Q4) Aren't interfaces also used to stub methods which are
defined (but not yet written) in order to get a clean
compile?
Any examples of a simple interface implementation would also be very helpful. Thanks!
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Since this is a duplicate, I am closing it.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Are Interfaces Implemented?
 
Similar Threads
interface and abstract class
what is exactly stands for Marked interface?
Doubt in Generics. pl help
implementing an interface without methods
interface