Programming - Polymorphism

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

 
7.

A reference variable can be declared as a ____________.                        


A. Class B. Interface
C. both D. none




8.

A _____________ variable can refer to any object of its declared type or any subtype of its declared type.                        


A. reference B. formal
C. parameterized D. unparameterized




9.

The _________________ calls the appropriate method for the object that is referred to in each variable. It does not call the method that is defined by the variable's type. This behavior is referred to as virtual method invocation                        


A. JVM B. JIT
C. both D. none




10.

The method binding happens at the _____________ time                        


A. compile B. run
C. both D. none




11.

The selection of the method’s implementation to execute happens at the _____________ time                        


A. compile B. run
C. both D. none




12.

The purpose of polymorphism is to implement a style of programming called ______________ in the literature, in which objects of various types define a common interface of operations for users.                        


A. message-passing B. method overloading
C. method overriding D. none




« prev

1

2

3

next »

 
 



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