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
- webjar
- Application Runner
- JPA
- EnableAutoConfiguration
- 알고리즘
- cors
- @Profile
- 브루트포스
- Application Argument
- 외부설정
- @ConfigurationProperties
- Spring Security
- JsonSerializer
- 리소스핸들러
- 백기선
- AuthenticationPrincipal
- Application Event
- 스프링 부트
- HATEOAS
- WebApplication Type
- HttpMessageConverters
- OAuth2
- 리소스 서버
- 다익스트라
- 백트래킹
- 스프링부트
- rest api
- 정적 리소스
- application.properties
- 백준
Archives
- Today
- Total
아카이브
Wrapper Class를 사용하는 이유 본문
Wrapper Class를 사용하는 이유
- 기본 자료형에 대해 객체로서 인식되도록 '포장'을 하기 위함
1) 매개변수로 객체가 요구될 때
2) 기본형 값이 아닌 객체로 저장해야 할 때
3) 객체간의 비교가 필요할 때
- 필요시 컴파일러가 자동으로 수행하기 때문에 이를 'autoboxing'이라고 한다
Integer i = new Integer(10); -> Integer i = 10; //오토박싱(autoboxing)
int i1 = i.intValue(); -> int i1 = i; //언박싱(unboxing)
'프로그래밍' 카테고리의 다른 글
OOP의 4가지 특징 (0) | 2018.06.18 |
---|---|
Call by Value 와 Call by Reference (0) | 2018.06.18 |
Overriding 과 Overloading (0) | 2018.06.18 |
Garbage와 Garbage Collection (0) | 2018.06.18 |
static VS non-static (0) | 2018.06.18 |