| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- RCP
- 엘라스틱서치
- 리뷰
- 맛집
- 인터페이스
- jface
- java
- MySQL
- javascript
- nodejs
- error
- JPA
- elasticsearch
- 백준
- 이펙티브
- node
- Web
- kibana
- Spring Boot
- effective
- java8
- 독후감
- 스프링
- 자바
- 알고리즘
- 자바스크립트
- boot
- 후기
- Git
- Spring
Archives
- Today
- Total
목록deepCopy (1)
wedul
자바 얕은 복사, 깊은복사 개념 및 예제
1. shallowCopypublic static int [] shallowCopy(int arr[])return arr; 얉은 복사를 의미하고 배열이나 객체를 복사할 때 단순히 참조만 복사하는것으로써 원본이 변경되면 복사본도 같이 변경된다. 2. deep copypublic static int [] deepCopjy(int arr[]){if (arr == null)return null; int result[] = new int[arr.length]; System.arraycopy(arr, 0 , result, 0, arr.length);return result;} ex) package javas; public class javas { public static void main(String args[])..
JAVA/JAVA 관련
2016. 12. 22. 08:01
