What is declaring in Java?

To create a variable, you must tell Java its type and name. Creating a variable is also called declaring a variable . When you create a primitive variable Java will set aside enough bits in memory for that primitive type and associate that memory location with the name that you used.

Leave a Reply

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

What is declaring in Java?

To create a variable, you must tell Java its type and name. Creating a variable is also called declaring a variable . When you create a primitive variable Java will set aside enough bits in memory for that primitive type and associate that memory location with the name that you used.

Leave a Reply

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