forked from jbloch/effective-java-3e-source-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Item 6 Sum
kgeneral edited this page Nov 21, 2018
·
4 revisions
autoboxing
-
primitive type 은 boxed, unboxed 가 섞여잇을 때 상호 casting 을 해줌. 문제는 casting 을 위해 불필요한 중간 instance 가 생기게 됨. (boxed type 는 immutable 이라고 함) 모든 primitive wrapper(boxed) type 는 immutable 이라고 함 : https://stackoverflow.com/questions/6166348/are-all-primitive-wrapper-classes-immutable-objects
-
34 페이지 치명적인 오타 : 231개 -> 2^31 개
실행 시간은 대략 9~10배 차이남
7604.425565 ms.
6605.577185 ms.
6277.769611 ms.
6216.410372 ms.
6198.266201 ms.
775.148871 ms.
803.990617 ms.
728.550144 ms.
737.499239 ms.
712.117752 ms.