반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- PANDAS
- Apache
- list
- django
- PostgreSQL
- Google Spreadsheet
- c#
- Google Excel
- string
- matplotlib
- hive
- SQL
- dataframe
- Python
- Java
- PySpark
- Kotlin
- 파이썬
- numpy
- gas
- Redshift
- math
- GIT
- Github
- google apps script
- Tkinter
- Excel
- Presto
- array
Archives
- Today
- Total
달나라 노트
Java - Datatype 본문
728x90
반응형
Original source = www.w3schools.com
Java의 Datatype은 다음과 같습니다.
| Data Type | Size | Description |
| byte | 1 byte | Stores whole numbers from -128 to 127 |
| short | 2 bytes | Stores whole numbers from -32,768 to 32,767 |
| int | 4 bytes | Stores whole numbers from -2,147,483,648 to 2,147,483,647 |
| long | 8 bytes | Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
| float | 4 bytes | Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits |
| double | 8 bytes | Stores fractional numbers. Sufficient for storing 15 decimal digits |
| boolean | 1 bit | Stores true or false values |
| char | 2 bytes | Stores a single character/letter or ASCII values |
그리고 위와 별도로 String이라는 타입도 있는데 이것도 매우 자주 사용됩니다.
(하지만 위 data type처럼 primitive data type이 아니라 object입니다.)
728x90
반응형
'Java' 카테고리의 다른 글
| Java - method (0) | 2021.03.12 |
|---|---|
| Java - Variables (변수) (0) | 2021.03.11 |
| Java - while loop (0) | 2021.03.11 |
| Java - switch ~ case ~ default (0) | 2021.03.11 |
| Java - Math : max, min, sqrt, abs, random (0) | 2021.03.11 |
Comments