What is dynamic variable in java and where do we use them?
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.
|
What is a resource leak?Usually all operating systems have limitations for using the number of file handles, sockets etc., which can be open...