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
- javascript
- php
- while
- control
- mysql
- Class
- react
- MIPS
- XML
- data structure
- Java
- DB
- DATAPATH
- Pipelining
- CSS
- for
- MacOS
- Algorithm
- Linux
- DoM
- system
- python
- computer
- html
- function
- instruction
- DS
- github
- architecture
- web
Archives
- Today
- Total
YYYEJI
[JAVA] Flow of Control 본문
728x90
Flow of Control이란?
Program의 instruction이 실행되는 순서입니다.
(Instruction - machine language에서의 코드 한 줄을 의미)
① Sequence
다음 instruction(code)로 그냥 넘어갑니다.
Program의 defualt 값 입니다.
② Branching or Selection
두 선택지 중에 하나를 선택하게 됩니다.
- 다음 instruction(code)로 넘어갈지,
- 다른 instruction으로 jump할지
선택합니다.
Ex) if, if-else, switch etc.
https://yyyeji.tistory.com/323
https://yyyeji.tistory.com/325
③ Loop or Repetition
Block을 반복하는데 이 경우에도 선택지는 두 개입니다.
- Code의 block을 반복할지,
- block이 끝난 후 다음 instruction으로 넘어가서 코드를 계속 수행할지
선택합니다.
Ex) while, do-while, for
https://yyyeji.tistory.com/328
https://yyyeji.tistory.com/329
https://yyyeji.tistory.com/326
◡̈
'Java' 카테고리의 다른 글
[JAVA] 조건부 연산자(Conditional operator) (0) | 2022.12.24 |
---|---|
[JAVA] If 문이란? (0) | 2022.12.24 |
[JAVA] Scanner 클래스 (0) | 2022.12.24 |
[JAVA] 변수(variable)란? (0) | 2022.12.23 |
[JAVA] 이클립스 The selection cannot be launched, and there are no recent launches 오류 해결하기 (0) | 2022.11.03 |