Answer the following statements true (T) or false (F)

1. Java interfaces are a way of simulating multiple inheritance.
2. An interface specifies the headings and definitions for methods that must be defined in any class that
implements the interface.
3. A class may only implement one interface.
4. An interface is a type.
5. You can not derive an interface from a base interface.

1. True
2. False
3. False
4. True
5. False

Computer Science & Information Technology

You might also like to view...

An array is not:

a. A consecutive group of memory locations. b. Subscripted by integers. c. Declared using braces, []. d. Made up of different data types.

Computer Science & Information Technology

Which of the following best describes the array name n in the declaration int n[10];?

a. n is a nonconstant pointer to nonconstant data. b. n is a nonconstant pointer to constant data. c. n is a constant pointer to nonconstant data. d. n is a constant pointer to constant data.

Computer Science & Information Technology