Basic doubt in java

how variable and its value get stored. or only value is stored not variable

Hii Pankaj,
See variable is a name given to a memory location. When you assign a value to the variable the value get stored at a particular memory location which the variable referring to. When you made changes in the value of the variable the changes occur at that memory location.

Hi Pankaj
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.