일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- junit 5
- 합병 정렬
- Java
- 제네릭 와일드 카드
- Effective JAVA
- 바운디드 타입
- 람다식
- 제네릭 타입
- 함수형 인터페이스
- 익명 클래스
- 자바스터디
- 항해99
- 정렬
- 접근지시자
- github api
- 프리미티브 타입
- annotation processor
- 브릿지 메소드
- Study Halle
- auto.create.topics.enable
- Switch Expressions
- 상속
- System.err
- System.out
- 스파르타코딩클럽
- public 필드
- 로컬 클래스
- System.in
- 자바할래
- raw 타입
Archives
- Today
- Total
목록2025/04/10 (1)
코딩하는 털보
ITEM 22 인터페이스는 타입 정의 용도로 사용
package me.rockintuna.effectivejava.item;/*인터페이스는 타입을 정의하는 용도로만 사용하자 */public class Item22 implements Item22Interface{ public static void main(String[] args) { //인터페이스를 구현한 클래스의 인스턴스는 그 인터페이스 타입이 된다. Item22Interface demo = new Item22(); }}interface Item22Interface { }class Item22NoConstants implements Item22InterfaceConstants { public static void main(String[] a..
Book/이펙티브 자바
2025. 4. 10. 22:14