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

  • 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)
主站蜘蛛池模板: 渭南市| 南充市| 永平县| 双柏县| 马尔康县| 连云港市| 嫩江县| 安西县| 岳西县| 西昌市| 临邑县| 临城县| 微山县| 黔西| 友谊县| 东兰县| 呼和浩特市| 于都县| 武鸣县| 伊吾县| 厦门市| 神池县| 阿巴嘎旗| 京山县| 武汉市| 余江县| 湾仔区| 黄龙县| 通山县| 肥西县| 汕尾市| 贡觉县| 祥云县| 简阳市| 金寨县| 睢宁县| 偏关县| 武功县| 洛宁县| 林甸县| 冕宁县|