An interface is similar to class in the following ways:
1. An interface can contain any number of methods.
2. An interface is written in a file with a java extension, with the name of the interface matching the name of the file.
3. The bytecode of an interface appears in a class file.
4. Interfaces appear in packages and their corresponding bytecode file must be in a directory structure that matches the package name.