Computer Science, asked by anamikasubhra, 5 months ago

give examples to show the use of static and dynamic initializations​

Answers

Answered by RamyaHarshi
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 krishnamehar3969
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