티스토리 뷰
Unlike primitive data type, the reference data type is user-defined, for which it contains a
reference or an address. It has Array type, Class type and Interface type etc.
create a reference data type
Person p;
allocated statically in the stack at compile time.
create a reference data type and object
Person p = new Person();
allocated dynamically in the heap
Reference
https://www.quora.com/What-are-reference-data-types-in-Java
https://www.quora.com/What-is-the-difference-between-a-reference-variable-and-an-object-in-Java-How-can-I-create-both
'JAVA' 카테고리의 다른 글
Lambda Expression in Java (0) | 2019.02.22 |
---|---|
compareTo method in Java (0) | 2019.02.21 |
Anonymous class in Java (0) | 2019.02.20 |
What's the difference between two different List declaration? (0) | 2019.02.02 |
Upcasting (Object type casting) in java (0) | 2019.01.30 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Collection Framework
- algorithm
- compareTo()
- hackerrank solution
- code refactoring
- 프로그래머스
- HashMap
- substring()
- hackerrank
- hackerrank javascript solution
- ... in Javascript
- repeat()
- string class in java
- spring boot application
- Javascript Algorithm
- C++
- javascript
- easy javascript algorithm
- math.max
- 알고리즘
- 프로그래머스 알고리즘문제
- easy algorithm
- equals()
- Object type casting
- 프로그래머스 알고리즘
- java
- rest parameter
- hackerrank javascript
- HackerRank Algorithm
- 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 |
글 보관함