give examples to show the use of static and dynamic initializations
Answers
Answered by
1
Answer:
static variable can be thought of as a variable that is allocated in memory for the lifetime of during program execution. ... A dynamic variable is a variable that can hold any value provided by the user during any program execution. Every time, new memory space is allocated for such a variable.
Answered by
1
Answer:
here
Explanation:
A static method can be accessed directly by the class name and doesn't need any object. A static method cannot refer to "this" or "super" keywords in anyway. Java allows its programmers to initialize a variable at run time also. Initializing a variable at run time is called dynamic initialization.
Similar questions
Computer Science,
2 months ago
Computer Science,
5 months ago
English,
5 months ago
Biology,
9 months ago
English,
9 months ago