What is dynamic variable in java and where do we use them? The variables that are initialized at run time is called as dynamic variable.
A dynamic variable is a variable whose address is determined at run-time. The type of a dynamic variable is resolved at run-time (The variables that are initialized at run time).
A static variable has its memory reserved at compilation time.
|