"Main 메소드"의 두 판 사이의 차이

잔글 (Main 메소드 문서를 메인 메소드(으)로 옮김)
 
(같은 사용자의 중간 판 7개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;main 메소드
;main method
;메인 메소드
*클래스의 시작점
*클래스의 시작점
*용도: 애플리케이션 시작, 단위/전체 테스트
*용도: 애플리케이션 시작, 단위/전체 테스트
<source lang='java'>
public class MyClass {
    public static void main(String args[]) {
        int x=10;
        int y=25;
        int z=x+y;
        System.out.println("Sum of x+y = " + z);
        // Sum of x+y = 35
    }
}
</source>


==같이 보기==
==같이 보기==
*[[클래스]]
* [[클래스]]
*[[메소드]]
* [[메소드]]
* [[main 함수]]
* [[Program.cs]]
* [[엔트리 포인트]]


[[분류:객체지향]]
[[분류:객체지향]]

2019년 5월 5일 (일) 02:07 기준 최신판

1 개요[ | ]

main method
메인 메소드
  • 클래스의 시작점
  • 용도: 애플리케이션 시작, 단위/전체 테스트
public class MyClass {
    public static void main(String args[]) {
        int x=10;
        int y=25;
        int z=x+y;
        System.out.println("Sum of x+y = " + z);
        // Sum of x+y = 35
    }
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}