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

PPT
7 expressions and assignment statements
PPT
CH # 1 preliminaries
PPT
5 Names, bindings,Typechecking and Scopes
PPT
8 statement level
PPT
2 evolution of the major
PPTX
9 subprograms
PPT
3 describing syntax
PPT
6 data types
7 expressions and assignment statements
CH # 1 preliminaries
5 Names, bindings,Typechecking and Scopes
8 statement level
2 evolution of the major
9 subprograms
3 describing syntax
6 data types

More from Shahid Rasheed (7)

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

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Business Ethics Teaching Materials for college
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
RMMM.pdf make it easy to upload and study
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Classroom Observation Tools for Teachers
Anesthesia in Laparoscopic Surgery in India
Business Ethics Teaching Materials for college
O5-L3 Freight Transport Ops (International) V1.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Basic Mud Logging Guide for educational purpose
2.FourierTransform-ShortQuestionswithAnswers.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
102 student loan defaulters named and shamed – Is someone you know on the list?
human mycosis Human fungal infections are called human mycosis..pptx
Week 4 Term 3 Study Techniques revisited.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
01-Introduction-to-Information-Management.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
RMMM.pdf make it easy to upload and study
Microbial diseases, their pathogenesis and prophylaxis
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’