> For the complete documentation index, see [llms.txt](https://docs.sysout.co.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sysout.co.kr/base-language/java/beginner/operator/sign-operator.md).

# 부호 연산

## 부호 연산

이 문서에서는 부호 연산에 대해서 알아본다.

### 부호 연산자

부호 연산자는 다음과 같은 종류가 있다.

| 연산자 | 설명                  |
| --- | ------------------- |
| +   | 양수임을 표시하기 위한 연산자이다. |
| -   | 음수임을 표시하기 위한 연산자이다. |

### 부호 연산 데모 1

```java
import java.lang.*;

public class SignOperatorExample1 {
    public static void main(String[] args){
        int a = 10;
        System.out.println(+a);
        System.out.println(-a);
    }
}
```

위의 예제를 실행하면 다음과 같은 출력 결과를 확인할 수 있다.

```
10
-10
```

출력 시 a앞에 작성한 `+`와 `-`는 덧셈, 뺄샘을 의미하는 기호가 아니며 값의 `부호`를 정하는 연산임을 알 수 있다.
