DEV Community

JEGADESHWARAN B
JEGADESHWARAN B

Posted on

Variables in JAVA

Initial
Variable is a container to store data.
It has name, type, and value.
Value can change.

Depth
Variables store data in memory.
They are accessed using name.
Type defines allowed values.

More Depth
Variables follow scope rules.
They must be declared before use.

Final
Variables help store and manipulate data.

Top comments (0)