Variables in Java

Variables in Java

In this tutorial we will see about what is variable? how to declare variable ? why i use variable in the program.So let's get start.

What is variable?

A variable is container which contains the value while the java program is executed.A variable is assigned with a datatype.Variable is name of memory location.
There are tree types of variable.

  1. Instance
  2. Static 
  3. Local 
There are two types of data type in Java. primitive and non-primitive


Comments

Popular posts from this blog

First Program in Java