Skip to content

Latest commit

 

History

History

README.MD

Variables

These are named memory location for storing data Variables have data types that describe the value they can hold

Types of variables

  1. Primitive types: These types hold data bits in memory and examples are
    1. byte: Holds whole numbers byte byteMin = -128; byte byteMax = 127;
    2. short: Holds whole numbers short shortMin = -32768;
    3. int: Holds whole numbers int max = 2147483647; int min = -2147483648;
    4. long: Holds whole numbers long longMin = -9223372036854775808L; long longMax = 9223372036854775807L;
    5. float: Holds fractions
    6. double:
  2. Reference types:
    1. String