官术网_书友最值得收藏!

  • Java Data Analysis
  • John R. Hubbard
  • 131字
  • 2021-07-02 18:21:43

Data types

Data is categorized into types. A data type identifies not only the form of the data but also what kind of operations can be performed upon it. For example, arithmetic operations can be performed on numerical data, but not on text data.

A data type can also determine how much computer storage space an item requires. For example, a decimal value like 3.14 would normally be stored in a 32-bit (four bytes) slot, while a web address such as https://google.com might occupy 160 bits.

Here is a categorization of the main data types that we will be working with in this book. The corresponding Java types are shown in parentheses:

  • Numeric types
    • Integer (int)
    • Decimal (double)
  • Text type
    • String (String)
  • Object types
    • Date (java.util.Date)
    • File (java.io.File)
    • General object (Object)
主站蜘蛛池模板: 阳西县| 墨竹工卡县| 资源县| 丽江市| 昂仁县| 安徽省| 靖州| 政和县| 商洛市| 靖西县| 长泰县| 贞丰县| 盐津县| 松溪县| 临沧市| 长海县| 邓州市| 井研县| 大关县| 岑溪市| 珠海市| 安岳县| 聂荣县| 靖边县| 弥渡县| 资溪县| 开化县| 甘肃省| 宜阳县| 宁都县| 凌云县| 唐河县| 金昌市| 惠来县| 东乌珠穆沁旗| 阿拉善盟| 博湖县| 商河县| 阳东县| 乌恰县| 平湖市|