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

  • 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)
主站蜘蛛池模板: 抚顺市| 尉氏县| 疏附县| 塘沽区| 楚雄市| 博罗县| 韶山市| 德惠市| 仁化县| 墨江| 徐州市| 福泉市| 邻水| 衡山县| 太白县| 湘潭县| 汶上县| 汉阴县| 扶沟县| 柘城县| 密山市| 安宁市| 石楼县| 安龙县| 新乡县| 桂东县| 衡阳市| 石林| 胶南市| 宜丰县| 松潘县| 渑池县| 五指山市| 永善县| 威信县| 通河县| 永嘉县| 武穴市| 兰溪市| 双桥区| 钟山县|