| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 스프링
- Web
- JPA
- 인터페이스
- nodejs
- 이펙티브
- 자바스크립트
- 알고리즘
- 후기
- node
- 맛집
- elasticsearch
- Spring Boot
- javascript
- 리뷰
- 독후감
- Spring
- error
- java8
- effective
- 엘라스틱서치
- 자바
- MySQL
- Git
- boot
- java
- 백준
- RCP
- jface
- kibana
Archives
- Today
- Total
목록shallowCopy (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