SlideShare a Scribd company logo
1 of 11
Basic Data Storage
Constants


Data that never changes
Constants

    true
     89
     4.6
     'k'
 "Sunnyvale"
Variables


A storage place for data that you can refer to by
          name and may be changeable
Initializing Variables
Specify what
kind of data
  to store
               type name = value;



                               Set it to an initial
     Give it an identifier
                                      value
Primitive Data Types
boolean     short

byte        int

char        long

String      float

            double
Default Values
boolean    false
 byte        0
 char     'u0000'
String      null
 short       0
  int        0
 long       0L
 float       0.0f
double     0.0d
Possible Values
boolean          false, true
 byte            -128 to 127
 char      'u0000' to 'uffff'
String                  ""
 short      -32,768 to 32,767
  int     -2,147,483,648 to 2,147,483,647

 long       -9,223,372,036,854,775,808 to
              9,223,372,036,854,775,807
 float     32-bit floating point
double    64-bit floating point
Variable Names
a-z, A-Z, 0-9, _, $

begin with a-z, A-Z, _, $

usually begin with a-z

$ rarely used

case sensitive: a ≠ A

camel case
Variable Names
   valid           preferred
 $firstName           firstName
 _lastName           lastName
     Age                age
  zip_code            zipCode
    CITY                city
   rel2Per     relationshipToPerson
addressline2       addressLine2
      c                count
Samples

           boolean flag = true;
                byte b = 0;
           char character = 'a';
       String firstName = "Marisa";
              short age = 13;
     int revolutionsPerHour = 65000;
long grainsOfSand = 14789409243948903;
            float length = 21.5;
       double pi = 3.1415926535897;

More Related Content

Viewers also liked

Introduction to san ( storage area networks )
Introduction to san ( storage area networks )Introduction to san ( storage area networks )
Introduction to san ( storage area networks )
sagaroceanic11
 
11 lec 11 storage class
11 lec 11 storage class11 lec 11 storage class
11 lec 11 storage class
kapil078
 
Top 10 behavioral specialist interview questions and answers
Top 10 behavioral specialist interview questions and answersTop 10 behavioral specialist interview questions and answers
Top 10 behavioral specialist interview questions and answers
jobbking39
 

Viewers also liked (14)

Introduction to san ( storage area networks )
Introduction to san ( storage area networks )Introduction to san ( storage area networks )
Introduction to san ( storage area networks )
 
Top 10 storage interview questions with answers
Top 10 storage interview questions with answersTop 10 storage interview questions with answers
Top 10 storage interview questions with answers
 
A basic terms power point
A basic terms power pointA basic terms power point
A basic terms power point
 
Designing Azure compute and storage infrastructure
Designing Azure compute and storage infrastructureDesigning Azure compute and storage infrastructure
Designing Azure compute and storage infrastructure
 
Probability and basic statistics with R
Probability and basic statistics with RProbability and basic statistics with R
Probability and basic statistics with R
 
Basics of html5, data_storage, css3
Basics of html5, data_storage, css3Basics of html5, data_storage, css3
Basics of html5, data_storage, css3
 
Storage classes in C
Storage classes in CStorage classes in C
Storage classes in C
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
DataMeet 4: Data cleaning & census data
DataMeet 4: Data cleaning & census dataDataMeet 4: Data cleaning & census data
DataMeet 4: Data cleaning & census data
 
11 lec 11 storage class
11 lec 11 storage class11 lec 11 storage class
11 lec 11 storage class
 
Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)
Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)
Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)
 
The Business Model Canvas (outline)
The Business Model Canvas (outline)The Business Model Canvas (outline)
The Business Model Canvas (outline)
 
Storage Technologies
Storage TechnologiesStorage Technologies
Storage Technologies
 
Top 10 behavioral specialist interview questions and answers
Top 10 behavioral specialist interview questions and answersTop 10 behavioral specialist interview questions and answers
Top 10 behavioral specialist interview questions and answers
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

Basic Data Storage

  • 3. Constants true 89 4.6 'k' "Sunnyvale"
  • 4. Variables A storage place for data that you can refer to by name and may be changeable
  • 5. Initializing Variables Specify what kind of data to store type name = value; Set it to an initial Give it an identifier value
  • 6. Primitive Data Types boolean short byte int char long String float double
  • 7. Default Values boolean false byte 0 char 'u0000' String null short 0 int 0 long 0L float 0.0f double 0.0d
  • 8. Possible Values boolean false, true byte -128 to 127 char 'u0000' to 'uffff' String "" short -32,768 to 32,767 int -2,147,483,648 to 2,147,483,647 long -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 float 32-bit floating point double 64-bit floating point
  • 9. Variable Names a-z, A-Z, 0-9, _, $ begin with a-z, A-Z, _, $ usually begin with a-z $ rarely used case sensitive: a ≠ A camel case
  • 10. Variable Names valid preferred $firstName firstName _lastName lastName Age age zip_code zipCode CITY city rel2Per relationshipToPerson addressline2 addressLine2 c count
  • 11. Samples boolean flag = true; byte b = 0; char character = 'a'; String firstName = "Marisa"; short age = 13; int revolutionsPerHour = 65000; long grainsOfSand = 14789409243948903; float length = 21.5; double pi = 3.1415926535897;

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n