What is Java variables example?

A variable is a name which is associated with a value that can be changed. For example when I write int i=10; here variable name is i which is associated with value 10, int is a data type that represents that this variable can hold integer values.

Sizin İçin Seçtik  How do you define and call a method in Java?

Leave a Reply

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