- 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
)
- Integer (
- Text type
- String (
String
)
- String (
- Object types
- Date (
java.util.Date
) - File (
java.io.File)
- General object (
Object
)
- Date (
推薦閱讀
- 手機安全和可信應用開發(fā)指南:TrustZone與OP-TEE技術詳解
- JavaScript 從入門到項目實踐(超值版)
- Pandas Cookbook
- JavaScript+jQuery開發(fā)實戰(zhàn)
- VSTO開發(fā)入門教程
- Getting Started with Laravel 4
- Visual Basic程序設計實驗指導(第二版)
- Android系統(tǒng)級深入開發(fā)
- 愛上micro:bit
- 網(wǎng)絡數(shù)據(jù)采集技術:Java網(wǎng)絡爬蟲實戰(zhàn)
- Java并發(fā)編程:核心方法與框架
- .NET 4.0面向?qū)ο缶幊搪劊簯闷?/a>
- Apache Solr PHP Integration
- WCF技術剖析(卷1)
- 輕松學Scratch 3.0 少兒編程(全彩)