반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- node.js
- 알고리즘
- tech interview
- 기술면접
- Java tech interview
- 맥북 필수 앱
- 자바 인터뷰
- 생활코딩
- 아톰에디터
- 맥북 팁
- jsx 문법
- 자바 기술면접
- react jsx
- 백준 알고리즘
- Express middleware
- Node.js Express
- React
- mysql
- 자바 면접
- AtomEditor
- 리액트
- 맥북 유용한 앱
- React props
- 맥북 초보
- 백준 단계별로 풀어보기
- react state
- 자바 영어면접
- 백준
- 맥북 사용법
- 자바 개발자
Archives
- Today
- Total
song.log
[자바 기술면접] 04. 할당과 초기화의 차이? 본문
728x90
반응형
- 각각의 정의
할당은 이미 선언된 변수에 값을 할당하는 프로세스를 의미합니다.
초기화는 변수를 선언할 때 동시에 값을 할당하는 프로세스를 의미합니다.
- 차이점
할당과 초기화의 주요 차이점은 변수에 값을 할당하는 시기입니다. 초기화는 선언할 때 값이 할당되지만, 할당은 이미 선언된 후에 이루어집니다. 할당은 여러 번 할 수 있지만, 초기화의 경우 선언할 때 한 번만 가능합니다.
- 영어 정리 :
Assignment is the process of assigning a value to a variable that has already been declared.
Initialization, on the other hand, is the process of assigning a value to a variable at the time of declaration.
So, the main difference between assignment and initialization is the timing of the value assignment to a variable. Initialization occurs at the time of declaration, while assignment occurs after the variable has been declared.
Assignment can be done as many times as desired whereas initialization can be done only once.
728x90
반응형
'StudyLog > Java interview' 카테고리의 다른 글
[자바 기술면접] 06. 생성자란? (0) | 2023.04.28 |
---|---|
[자바 기술면접] 05. 클래스란? (0) | 2023.04.28 |
[자바 기술면접] 03. 캡슐화, 상속성, 다형성이란? (0) | 2023.04.28 |
[자바 기술면접] 02. 절차 지향 프로그램 vs 객체 지향 프로그램 (0) | 2023.04.28 |
[자바 기술면접] 01. OOP란? (0) | 2023.04.28 |
Comments