What are Variables?

Variables store data in your Java programs. Variables should be created(declared) before you can use them. When creating variables you need to specify the type of data they will store.

Out of the box, Java have eight built-in data types. They are called Primitive Data Types.

What is a Data Type?

A variable's data type determines :

  • The value(s) it may contain
  • The operations that may be performed on it
  • Optional minimum and maximum values it can store.

results matching ""

    No results matching ""