In programming language jargon, binding refers to the association between an attribute and an entity, like type binding which refers to the association between a type (attribute) to a variable (entity). What does static type binding refer to?
A :it refers to the type binding that is only fully determined when the program starts executing, and it cannot be changed later
B :it refers to the type binding that is only fully determined when the program starts executing, and it can be changed at any time later
C :it refers to the type binding that is fully determined even before the program starts executing, and it cannot be changed later
D :it refers to the type binding that is fully determined even before the program starts executing, although it can be changed later
Choice(D) is correct, i.e., it refers to the type binding that is fully determined even before the program starts executing, although it can be changed later.
Explanation : In static type binding, the compiler binds the variable to its type/entity attribute and allocates and fixes memory before the program starts it's execution (in compile-time itself). Although in dynamic binding, the binding of variable to its type happens at run time. In static binding, the value declared as static can be changed later throughout the program.
Get Answers For Free
Most questions answered within 1 hours.