Programming - Interfaces

You Are Here :: Home > JAVA > Interfaces - General Questions

 
1.

an ________________ is a reference type, similar to a class, that can contain only constants, method signatures, and nested types.                        


A. Interface B. Abstraction
C. Encapsulation D. Inheritance




2.

___________________ cannot be instantiated—they can only be implemented by classes or extended by other interfaces.                        


A. Interface B. Abstraction
C. Encapsulation D. Inheritance




3.

To use an ______________, you write a class that implements the interface.                        


A. Interface B. Abstraction
C. Encapsulation D. Inheritance




4.

When an instantiable class implements an _________________, it provides a method body for each of the methods declared in the interface.                        


A. Interface B. Abstraction
C. Encapsulation D. Inheritance




5.

The _____________ access specifier indicates that the interface can be used by any class in any package.                        


A. Private B. Protected
C. Public D. Default




6.

An _______________ can extend other interfaces                        


A. Interface B. Abstraction
C. Encapsulation D. Inheritance




1

2

3

4

5

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on