Added types of variables in java (#32976)

This commit is contained in:
Abhishek
2018-11-01 03:07:46 +05:30
committed by Paul Happ
parent 54f5c274df
commit 690bf76aa8

View File

@ -48,8 +48,13 @@ byte anotherByte = (byte)0b00100001;
```
As evident from the above example, variables of Primitive type behave slightly differently from variables of Reference (& Wrapper) type - while Primitive variables <i>store</i> the actual value, Reference variables <i>refer to</i> an 'object' containing the actual value.
Java Programming language defines mainly three kind of variables.
1) Instance variables
2) Static Variables
3) Local Variables
You can find out more in the sections linked below.
# Other Resources
* <a href='https://guide.freecodecamp.org/java/data-types' target='_blank' rel='nofollow'>Data Types</a>
* <a href='https://guide.freecodecamp.org/java/classes-and-objects' target='_blank' rel='nofollow'>Classes and Objects</a>
* <a href='https://guide.freecodecamp.org/java/classes-and-objects' target='_blank' rel='nofollow'>Classes and Objects</a>