SlideShare a Scribd company logo
Each memory address
corresponds to one memory
location.
The content of any location
becomes known by its
addressing.
Compare it with a filing cabinet with many drawers (with labels for
easy access.)
Easy to find out the contents of the drawer by reading the label on
the front of the drawer.
A variable is a piece of data kept in RAM
The location of a variable in RAM is called the "address."
var X = 15
The memory address of X is not necessarily 1000000
Pointer is a memory location that stores the
address of another memory location
Pointer is also a Variable
Pointer is stored at location (0005) like other variables. The Pointer
value (0001) is the address of some other Variable.
Normal Var can store values, Pointers are special variables
that can hold the address of a variable
● A normal variable ‘var’has a
memory address of 1001
and holds a value 50
● A pointer variable has its
own address 2047 but
stores 1001, which is the
address of the variable ‘var’

More Related Content

More from Shahid Rasheed (7)

PDF
Java Instantiation
Shahid Rasheed
 
PDF
Variable Naming Best Practices
Shahid Rasheed
 
PDF
Java Variable Types
Shahid Rasheed
 
PDF
Java Basic Operators
Shahid Rasheed
 
PDF
Java basic-data-types
Shahid Rasheed
 
PDF
Java basic-syntax
Shahid Rasheed
 
PDF
What is-java
Shahid Rasheed
 
Java Instantiation
Shahid Rasheed
 
Variable Naming Best Practices
Shahid Rasheed
 
Java Variable Types
Shahid Rasheed
 
Java Basic Operators
Shahid Rasheed
 
Java basic-data-types
Shahid Rasheed
 
Java basic-syntax
Shahid Rasheed
 
What is-java
Shahid Rasheed
 

Recently uploaded (20)

PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Ad

Java Variable Storage

  • 1. Each memory address corresponds to one memory location. The content of any location becomes known by its addressing. Compare it with a filing cabinet with many drawers (with labels for easy access.) Easy to find out the contents of the drawer by reading the label on the front of the drawer.
  • 2. A variable is a piece of data kept in RAM The location of a variable in RAM is called the "address."
  • 3. var X = 15 The memory address of X is not necessarily 1000000
  • 4. Pointer is a memory location that stores the address of another memory location
  • 5. Pointer is also a Variable Pointer is stored at location (0005) like other variables. The Pointer value (0001) is the address of some other Variable.
  • 6. Normal Var can store values, Pointers are special variables that can hold the address of a variable ● A normal variable ‘var’has a memory address of 1001 and holds a value 50 ● A pointer variable has its own address 2047 but stores 1001, which is the address of the variable ‘var’