oliver-DevLog

  • 홈
  • 태그

Interface 1

Collection Interface로 업캐스팅을 하는 이유

List, Set, Map을 사용하다보면 습관적으로 List 리스트= new ArrayList처럼 사용하게 된다. 하지만 구현체를 직접 선언하여 ArrayList 리스트 = new ArrayList로 사용하게된다면 다음과 같은 린트(Lint) 메시지를 확인 할 수 있다. Declarations should use Java collection interfaces such as "List" rather than specific implementation classes such as "LinkedList" The purpose of the Java Collections API is to provide a well defined hierarchy of interfaces in order to hide imple..

개발 이야기/Java 2022.05.26
이전
1
다음
더보기
프로필사진

oliver-DevLog

개발 일지와 일상 나눔

방문자수Total

  • Today :
  • Yesterday :
  • 분류 전체보기 (29)
    • 개발 이야기 (17)
      • 백엔드 이야기 (3)
      • Spring Boot (4)
      • Kafka (2)
      • Java (5)
      • Jenkins (3)
    • 데이터베이스 (4)
      • PostgreSQL (4)
    • 기초 (7)
      • Linux (2)
      • 알고리즘 (5)
    • 취미 (1)
      • 음악 (1)

Tag

springboot, ci/cd, Java, Kafka, 생성자주입, sql, 약한결합, authentications, 양방향알고리즘, 알고리즘, 이펙티브자바, 단방향알고리즘, jenkins, Linux, 수정자주입, postgresql, EffectiveJava, 강한결합, 정적팩토리메소드, 자원해제,

최근글과 인기글

  • 최근글
  • 인기글

Copyright © AXZ Corp. All rights reserved.

티스토리툴바