WHAT IS DYNAMIC INITIALIZATION ?

class Demo{
public static void main(String[] args){
int x=10;
int y=20;
int z=x+y;
System.out.println(z);
}}

We can declare a variable at the time of use.
This is nothing but dynamic initialization.

No comments:

Post a Comment