다른 뜻에 대해서는 주석(comment) 문서를 참조하십시오.
다른 뜻에 대해서는 주석(tin) 문서를 참조하십시오.
다른 뜻에 대해서는 주석 (관직) 문서를 참조하십시오.
개요
- 소스코드 중 사람이 임의로 기술한 내용
- 사람이 알기 쉽게 첨가한 설명내용
- 처리시에는 무시되므로 자유롭게 글 작성 가능
Java 예시
/**
* Registers the text to display in a tool tip. The text
* displays when the cursor lingers over the component.
*
* @param text the string to display. If the text is null,
* the tool tip is turned off for this component.
*/
public void setToolTipText(String text) {
형식상 주석
- 드문 경우이지만, 컴파일/런타임시 의미 있는 경우도 있다.[2]
- 예: Python 2에서 소스코드의 encoding
# -*- coding: utf-8 -*-