본문 바로가기 메뉴 바로가기

five weeks

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

five weeks

검색하기 폼
  • 분류 전체보기 (65)
    • 기록&후기 (2)
    • 알고리즘 (8)
    • 질문 정리 (43)
    • SSAFYcial (9)
    • 블루투스 (1)
  • 방명록

list (1)
왜 List<String> list = new ArrayList<>()라고 쓸까??

= 업캐스팅을 하는 이유 List list = new ArrayList(); ArrayList list = new ArrayList(); List와 ArrayList는 다르다. public interface List extends Collection public class ArrayList extends AbstractList implements List, RandomAccess, Cloneable, Serializable List는 Collection을 상속(extends) 받은 interface이고, ArrayList는 List를 상속(implements) 받은 Class이다. 기본적으로 우리가 자바에서 할당을 하는 방법이다. ArrayList list = new ArrayList(); 우리는 보통 ..

질문 정리 2023. 2. 16. 11:09
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • okhttp
  • retrofit
  • connecttimeout
  • hilt
  • this
  • api 경로
  • 빌드 타입
  • build type
  • compose
  • newtoken
  • 안드로이드
  • Android
  • 코틀린
  • @provides
  • SSAFY
  • 릴리즈 빌드
  • 디버그 빌드
  • 상단알람
  • tomap
  • java
  • SWEA
  • 데이터무결성체크
  • 모바일트랙
  • 블루투스개념정리
  • 백준
  • release build
  • 알고리즘
  • missingbinding
  • 싸피
  • Kotlin
more
«   2026/03   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바