MODULE 1:
OBJECT-ORIENTED PROGRAM LOGIC AND
DESIGN
Chapter 6 Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
• Are whole numbers with a sign (positive or
negative)
• Example of integer literals: +23 -100
123456789 50L
(note: no commas are used when coding
integer literals; 50L is an integer value whose
data-type is long)
Variables
Variables
• To declare integer variables:
byte < identifier or variable-name >
short < identifier or variable-name >
int < identifier or variable-name >
long < identifier or variable-name >
• Floating Point
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables
Variables

More Related Content

PPTX
Lecture 11 semantic analysis 2
PPTX
L attribute in compiler design
PDF
Semantic Analysis of a C Program
PDF
Fundamentals of Computing and C Programming - Part 1
PDF
Lecture4 lexical analysis2
PDF
Fundamentals of Computing and C Programming - Part 2
PDF
Lecture5 syntax analysis_1
Lecture 11 semantic analysis 2
L attribute in compiler design
Semantic Analysis of a C Program
Fundamentals of Computing and C Programming - Part 1
Lecture4 lexical analysis2
Fundamentals of Computing and C Programming - Part 2
Lecture5 syntax analysis_1

What's hot (20)

PDF
2 variables and data types
PPTX
Lecture 02 lexical analysis
PPTX
Undecidable Problems and Approximation Algorithms
PDF
ITFT-Constants, variables and data types in java
PPTX
Chapter 2: Elementary Programming
PPTX
Intro to automata theory
PPTX
7.pointers
PPTX
Lecture 10 semantic analysis 01
PPTX
Language for specifying lexical Analyzer
PPTX
Specification-of-tokens
PPTX
PPTX
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
PPTX
FUNDAMENTAL OF C
PPT
Getting started with c++
PPTX
Data Structure and Algorithms –Introduction.pptx
DOCX
Unit i
PDF
From logistic regression to linear chain CRF
PPT
ALGOL ailesi programlama dilleri
PPTX
Unit 1
2 variables and data types
Lecture 02 lexical analysis
Undecidable Problems and Approximation Algorithms
ITFT-Constants, variables and data types in java
Chapter 2: Elementary Programming
Intro to automata theory
7.pointers
Lecture 10 semantic analysis 01
Language for specifying lexical Analyzer
Specification-of-tokens
Undecidable Problems - COPING WITH THE LIMITATIONS OF ALGORITHM POWER
FUNDAMENTAL OF C
Getting started with c++
Data Structure and Algorithms –Introduction.pptx
Unit i
From logistic regression to linear chain CRF
ALGOL ailesi programlama dilleri
Unit 1
Ad

More from Dr. Rosemarie Sibbaluca-Guirre (20)

PPTX
Korean Language: Culture 한국어 개요
PPTX
Korean Language Overview 한국어 개요
PPTX
Conjunction 접속사
PPTX
PPTX
Usage of Particles 입자의 사용
PPTX
Usage of Particles 입자의 사용
PPTX
Korean Word Order 한국어 단어 순서
PPTX
Korean Number 한국 번호
PPTX
ISAD 313-3_ TOOLS OF THE SYSTEM ANALYSIS.pptx
PPTX
ISAD 313-1_INTRODUCTION TO SYSTEMS.pptx
PPTX
ISAD 313-2_ SYSTEM ANALYSIS.pptx
PPTX
ISAD 313-4_ RESEARCH PROJECT.pptx
PPTX
ISAD 313-3_ SYSTEM FLOW.pptx
PPTX
ISAD 313-3_ MODELS.pptx
PPTX
ACCT11_9_Financial Position.pptx
PPTX
ACCT11_8_Equity.pptx
PPTX
ACCT11_7_Performance.pptx
PPTX
ACCT11_6_Worksheet.pptx
PPTX
ACCT11_5_Adjusting Entries.pptx
PPTX
ACCT11_4_Trial Balance.pptx
Korean Language: Culture 한국어 개요
Korean Language Overview 한국어 개요
Conjunction 접속사
Usage of Particles 입자의 사용
Usage of Particles 입자의 사용
Korean Word Order 한국어 단어 순서
Korean Number 한국 번호
ISAD 313-3_ TOOLS OF THE SYSTEM ANALYSIS.pptx
ISAD 313-1_INTRODUCTION TO SYSTEMS.pptx
ISAD 313-2_ SYSTEM ANALYSIS.pptx
ISAD 313-4_ RESEARCH PROJECT.pptx
ISAD 313-3_ SYSTEM FLOW.pptx
ISAD 313-3_ MODELS.pptx
ACCT11_9_Financial Position.pptx
ACCT11_8_Equity.pptx
ACCT11_7_Performance.pptx
ACCT11_6_Worksheet.pptx
ACCT11_5_Adjusting Entries.pptx
ACCT11_4_Trial Balance.pptx
Ad

Recently uploaded (20)

PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Module on health assessment of CHN. pptx
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
advance database management system book.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
Introduction to pro and eukaryotes and differences.pptx
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Module on health assessment of CHN. pptx
Hazard Identification & Risk Assessment .pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
advance database management system book.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
Unit 4 Computer Architecture Multicore Processor.pptx
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Environmental Education MCQ BD2EE - Share Source.pdf

Variables

  • 1. MODULE 1: OBJECT-ORIENTED PROGRAM LOGIC AND DESIGN Chapter 6 Variables
  • 14. • Are whole numbers with a sign (positive or negative) • Example of integer literals: +23 -100 123456789 50L (note: no commas are used when coding integer literals; 50L is an integer value whose data-type is long)
  • 17. • To declare integer variables: byte < identifier or variable-name > short < identifier or variable-name > int < identifier or variable-name > long < identifier or variable-name >