ABSOLUTE JAVA ACTUAL TEST QUESTIONS
AND SOLUTIONS COMPREHENSIVE
REVIEW PACKAGE
●● ___ refers to the process of associating a method definition with a
method invocation.
Answer: binding
●● If the method definition is associated with the method invocation
when the code is compiled, that is called ___.
Answer: early binding
●● If the method definition is associated with the method invocation
when the method is invoked (at run time), that is called ___ or ___.
Answer: late binding / dynamic binding
●● T or F: Java uses late binding for all methods except for a few cases.
Answer: true
●● T or F: Note that in order for late binding to work, each object must
somehow know which definition of each method applies to that object.
Answer: true
, ●● So, when an object is created in a system using late binding, the
description of the object must include (either directly or indirectly) a
description of where the appropriate definition of each ___ is located.
Answer: method
●● The terms ___ and ___ are essentially just different words for the
same concept.
Answer: polymorphism / late binding
●● ___ refers to the process of assigning multiple meanings to the same
method name using late binding.
Answer: polymorphism
●● You can mark a method ___ to indicate that it can't be overridden
with a new definition in a derived class.
Answer: final
●● An entire class can be declared ___, in which case you can't use it as
a base class to derive any other class from it.
Answer: final
●● If a method is marked as ___, it means the compiler can use early
binding with that particular method, which enables the compiler to be
more efficient.
AND SOLUTIONS COMPREHENSIVE
REVIEW PACKAGE
●● ___ refers to the process of associating a method definition with a
method invocation.
Answer: binding
●● If the method definition is associated with the method invocation
when the code is compiled, that is called ___.
Answer: early binding
●● If the method definition is associated with the method invocation
when the method is invoked (at run time), that is called ___ or ___.
Answer: late binding / dynamic binding
●● T or F: Java uses late binding for all methods except for a few cases.
Answer: true
●● T or F: Note that in order for late binding to work, each object must
somehow know which definition of each method applies to that object.
Answer: true
, ●● So, when an object is created in a system using late binding, the
description of the object must include (either directly or indirectly) a
description of where the appropriate definition of each ___ is located.
Answer: method
●● The terms ___ and ___ are essentially just different words for the
same concept.
Answer: polymorphism / late binding
●● ___ refers to the process of assigning multiple meanings to the same
method name using late binding.
Answer: polymorphism
●● You can mark a method ___ to indicate that it can't be overridden
with a new definition in a derived class.
Answer: final
●● An entire class can be declared ___, in which case you can't use it as
a base class to derive any other class from it.
Answer: final
●● If a method is marked as ___, it means the compiler can use early
binding with that particular method, which enables the compiler to be
more efficient.