Java Generics (runtime error,compile error)
Why use Generics in Java? - Class를 정의할 때는 datatype을 정하지 않고, 인스턴스를 생성할 때 datatype을 지정하는 것이 Java Generic 이다.- Java Generics은 기본datatype 에서는 사용하지 않고 reference datatype(e.g. Arrays, Class, Interface etc) 에서만 사용가능하다.- Generic은 compile time error를 발견하게 도와준다. -> 프로그램상에서 런타임에러는 심각한 문제를 초래 할 수 있기 때문에 컴파일에러가 나도록 유도해야한다. *runtime error compile error 런타임에러와 컴파일 에러란? compile 이란?인간이 이해하기 쉽게 하려고 만든 소스코드를 다시 기계..
JAVA
2019. 1. 6. 13:20
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 프로그래머스 알고리즘문제
- spring boot application
- algorithm
- repeat()
- easy algorithm
- Javascript Algorithm
- Collection Framework
- java
- hackerrank solution
- hackerrank javascript
- ... in Javascript
- compareTo()
- code refactoring
- 프로그래머스 알고리즘
- javascript
- rest parameter
- substring()
- hackerrank
- C++
- HashMap
- string class in java
- math.max
- easy javascript algorithm
- Object type casting
- 알고리즘
- HackerRank Algorithm
- equals()
- 프로그래머스
- hackerrank javascript solution
- math.abs
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함