Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- java
- Spring Boot
- @FunctionalInterface
- java lambda
- SpringMVC
- Sleuth
- spring MVC
- aws secretmanager
- java list
- HashMap
- awssecretsmanagerpropertysources
- java.util.list
- list
- elasticsearch
- micrometer tracing
- asyncconfigurer
- map
- jpa
- EnableWebMvc
- Spring JPA
- CompletableFuture
- traceId
- grpc
- traceasynccustomautoconfiguration
- wire type
- spring
- DeferredImportSelector
- ResponseBody
- kotlin
- asynccustomautoconfiguration
Archives
- Today
- Total
목록integer (1)
du.study기록공간
Integer Object 127과 128
친구에게 갑자기 이 질문을 받게 되었다. Integer a1 = 127; Integer a2 = 127; a1 == a2 는 true일까? Integer b1 = 128; Integer b2 = 128; b1 == b2 는 true일까? 오브젝트 비교는 알겠는데.. 진짜 같은가에 대해선 대답을 못해서 우선 코드를 돌려보았다. class Test { public static void main(String[] args) { Integer a1 = 127; Integer a2 = 127; System.out.println(a1 == a2); // true Integer b1 = 128; Integer b2 = 128; System.out.println(b1 == b2); // false } } 결과가 왜이러는..
자바
2019. 8. 12. 17:32