variables:
1)Variables is memory space
2)It is to store the values
3)Variable name allows the special char like ($ and _)
4)The variable name should be started with small letter
Stack:
5)It is a memory space,JVM will allocate a memory for variable in a stack memory
6)The size of the stack memory is fixed,it varies based on the size of the datatypes
Top comments (0)