
[혼공단 8기] 4주차 미션
2022. 7. 31. 14:06
개발/Inafolio
[Java] 스레드 제어 스레드 상태? 스레드 객체를 생성하고 start() 메소드를 호출하면 바로 실행되는 것이 아니라 실행 대기 상태가 된다. 운영체제는 실행 대기 상태에 있는 스레드 중 하나를 선택해 실행 상태로 만 h-owo-ld.tistory.com 550페이지 직접해보는 손코딩 public class AutoSaveThread extends Thread{ public void save() { System.out.println("작업 내용을 저장한다"); } @Override public void run() { while (true) { try { Thread.sleep(1000); } catch (InterruptedException e) { break; } save(); } } } publi..

[혼공단 8기] 3주차 미션
2022. 7. 24. 18:14
개발/Inafolio
혼공노트를 전체적으로 읽어보고 다음주에 시작할 미션인 12주! 내용을 읽어보았다 p512 8번 포장객체 내부의 값 비교 public class IntegerCompareEx { public static void main(String[] args) { Integer obj1 = 100; Integer obj2 = 100; Integer obj3 = 300; Integer obj4 = 300; System.out.println( obj1 == obj2); System.out.println( obj3 == obj4); } } 실행결과 이유 타입 값의 범위 boolean true, false char \u0000 ~ \u0071 byte, short, int -128 ~ 127 박싱된 값이 다음 표에 나와있는 ..

[혼공단 8기] 2주차 미션
2022. 7. 14. 06:01
개발/Inafolio
p.330 문제 5번 실행 결과 public class Parent { public String nation; public Parent() { this("대한민국"); System.out.println("Parent() call"); } public Parent(String nation) { this.nation = nation; System.out.println("Parent(String nation) call"); } } public class Child extends Parent{ private String name; public Child() { this("홍길동"); System.out.println("Child() call"); } public Child(String name) { this.n..

[혼공단 8기] 1주차 미션
2022. 7. 8. 06:17
개발/Inafolio
학습스케쥴은 일단 아침마다 챕터 속 1장씩 하고있었는데 분량을 늘려야 할 것같다 ;- ; 저녁에도 혼공자 시간을 넣어줄 예정 JDK는 이미 깔려있어서.. cmd로 버전확인 캡쳐쓰