일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 백준 알고리즘
- 자바 면접
- 자바 기술면접
- React
- 맥북 유용한 앱
- Node.js Express
- 맥북 필수 앱
- 리액트
- Java tech interview
- node.js
- 백준
- tech interview
- 자바 인터뷰
- Express middleware
- 아톰에디터
- 생활코딩
- 기술면접
- 알고리즘
- jsx 문법
- react state
- 맥북 팁
- 맥북 사용법
- mysql
- 백준 단계별로 풀어보기
- 자바 개발자
- AtomEditor
- react jsx
- React props
- 맥북 초보
- 자바 영어면접
- Today
- Total
song.log
[자바 기술면접] 09. 파라미터 vs 인자 본문
- 정의
파라미터(parameter) : 함수에서 사용될 변수를 선언하는 데 사용됩니다. 즉, 파라미터는 함수에서 값을 전달받을 때 사용됩니다. 파라미터는 함수를 호출할 때 함수에 값을 전달하여 함수의 로직을 수행할 때 사용됩니다.
인자(argument) : 함수를 호출할 때 함수에 전달되는 값입니다. 함수를 호출할 때 인자를 전달하면 함수는 이 인자를 사용하여 작업을 수행합니다.
간단하게 말하면, 파라미터는 함수를 정의할 때 사용하는 변수이고, 인자는 함수를 호출할 때 전달하는 값입니다. 파라미터는 함수 내부에서 사용되며, 인자는 함수 호출자로부터 전달됩니다.
- 영어 정리 :
Parameters are used to declare variables that will be used in the function. In other words, parameters are used to receive values when calling the function. Parameters are used when calling a function to pass values to the function to perform its logic.
Arguments are the values passed to a function when it is called. When a function is called with arguments, the function uses these arguments to perform its work.
In short, parameters are variables used when defining a function, while arguments are values passed to a function when it is called. Parameters are used internally in the function, while arguments are passed from the function caller.
'StudyLog > Java interview' 카테고리의 다른 글
[자바 기술면접] 11. 가비지 컬렉션이란? (0) | 2023.04.28 |
---|---|
[자바 기술면접] 10. 접근제어자 public, protected, default, private (0) | 2023.04.28 |
[자바 기술면접] 08. 값에 의한 호출 vs 참조에 의한 호출 (0) | 2023.04.28 |
[자바 기술면접] 07. 메서드란? (0) | 2023.04.28 |
[자바 기술면접] 06. 생성자란? (0) | 2023.04.28 |