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 |
Tags
- while
- react
- DATAPATH
- for
- MacOS
- javascript
- DS
- DoM
- computer
- CSS
- MIPS
- Java
- instruction
- php
- architecture
- DB
- Pipelining
- Class
- Algorithm
- XML
- mysql
- web
- data structure
- function
- github
- python
- html
- control
- Linux
- system
Archives
- Today
- Total
YYYEJI
[JAVA] Primitive data type의 종류 본문
728x90
① Integer
• . . . -2, -1, 0, 1, 2, . . . etc.
• byte (1 bytes)
• short (2 bytes)
• int (4 bytes)
• long (8 bytes)
② Floating point
• 9.99, 3.15913494, -5.0 etc.
• float (4 bytes)
• double (8 bytes)
③ Character
• 'Hello world' etc.
• char (2 bytes)
• Using single quotes
• System.out.println('Hello World');
④ Boolean
• True (1 bit)
• False (1 bit)
◡̈
'Java' 카테고리의 다른 글
[JAVA] String 클래스 매소드 정리 (0) | 2022.10.23 |
---|---|
[JAVA] 형변환(Casting) 이란? (0) | 2022.10.22 |
[JAVA] 예약어와 키워드의 차이점 (Keyword, Reserved word) (0) | 2022.10.22 |
[JAVA] 변수 타입의 종류 (Primitive type, Class type) (0) | 2022.10.22 |
[OOP] Encapsulation, Polymorphism, Inheritance (0) | 2022.10.21 |