What is initialization and declaration in Java?

Declaration: Declaration is when you declare a variable with a name, and a variable can be declared only once. Example: int x; , String myName; , Boolean myCondition; Initialization: Initialization is when we put a value in a variable, this happens while we declare a variable .

Sizin İçin Seçtik  What are objects in Java give example?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is initialization and declaration in Java?

Declaration: Declaration is when you declare a variable with a name, and a variable can be declared only once. Example: int x; , String myName; , Boolean myCondition; Initialization: Initialization is when we put a value in a variable, this happens while we declare a variable .

Sizin İçin Seçtik  How do I show my gallery in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *