티스토리 뷰
1. 박싱 : 기본자료형 -> Wrapper 클래스로 변환
2. 언방싱 : Wrapper 클래스 -> 기본자료형 으로 변환
public static void main(String[] args) {
int n1 = 10;
int n2;
Integer num1;
Integer num2 = new Integer(20);
num1 = n1; // 오토 박싱 : 스택영역의 값을 힙 영역에 객체를 생성해서 넣음
n2 = num2; // 오토 언박싱 : 힙 영역에서 값을 꺼내 스택영역으로 복사함
System.out.println(n1 + ", " + num1);
System.out.println(n2 + ", " + num2);
}
'java/javascript' 카테고리의 다른 글
객체지향 언어의 특징 (0) | 2014.08.05 |
---|---|
java와 c의 차이점 (0) | 2014.08.05 |
int 와 Integer 차이 (0) | 2014.04.02 |
double 연산에서 NaN 처리 (0) | 2014.02.28 |
calendar.js (달력만들기) (3) | 2014.02.20 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 리눅스 port 열기
- pig tool
- 리눅스 port
- uriencode 더하기
- uriencode %29
- log
- du depth
- %29
- du -h
- uriencode 괄호
- encode 더하기
- %28
- couchbase index
- 카우치베이스 INDEX
- 리눅스 용량
- firewalld
- linux port open
- centos7 port open
- centos port open
- linux du -h
- crontab
- encode 공백
- uriencode 공백
- linux du
- 카우치베이스 인덱스
- uriencode %20
- 쿼리
- uriencode %28
- couchbase 인덱스
- linux port
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함