일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- reactor
- reactor core
- 웹 스터디
- reactive
- 공유기 서버
- 서버운영
- spring reactive
- Spring Framework
- Spring Batch
- 웹 커리큘럼
- ipTIME
- 웹앱
- Today
- Total
목록2016/11/03 (2)
Hello World
1. Deep copy (깊은 복사)- 같은 내용의 새로운 객체를 생성, 원본의 변화에 복사본이 영향을 받지 않는다. 2. Shallow copy(얕은 복사)- 참조변수만 복사, 원본의 변화에 복사본이 영향을 받는다.?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748import java.util.Arrays; public class CopyTest { public static void main(String[] args) { int[] data = { 0, 1, 2, 3, 4, 5 }; int[] sCopy = null; int[] dCopy = null; sCopy = shallowCopy(data..
자바는 Static block -> Instance block -> 생성자 순으로 초기화가 된다. 먼저 아래와 같은 코드를 실행해 보자. public class TestClass { public static void main (String[] args) { System.out.println("---------------------------"); Parent father = new Parent("father"); System.out.println("---------------------------"); }} class Parent { public String myName = "Parent"; static { System.out.println ("This is first message of Parent c..