An interface is similar to a class in the following ways:
the byte code of an interface appears in a .class file
an interface is written in a file with a .java extension; interface name matches the name of the file
interfaces appear in packages, and their corresponding bytecode file must be in a directory structure that matches the package name
an interface can contain any number of methods
Check
Check the answers. The responses will be marked as correct, incorrect, or unanswered.
Reuse
Reuse this content.
Embed
View the embed code for this content.
Visit H5P.org to check out more cool content.