Java Reference
In-Depth Information
Review Questions
1.
True or False: An interface is saved in a .java file that must match the name of the
interface.
2.
True or False: The bytecode for an interface appears in a .intf file, where the filename
matches the name of the interface.
3.
True or False: All methods in an interface are abstract.
4.
True or False: Methods in an interface can be public, protected, or the default access,
but not private.
5.
If a class declares that it implements an interface but the class does not define all the
methods of the interface, the class must be declared _____________________.
6.
What is the term used to describe an interface with no methods in it?
7.
Name two important uses of interfaces.
8.
True or False: A class can implement more than one interface.
9.
True or False: An interface can extend more than one parent interface.
10.
A field in an interface must be declared as _______________ and
_______________.
Search WWH ::




Custom Search