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

잔글 (Jmnote님이 메인 메소드 문서를 Main 메소드 문서로 이동하면서 넘겨주기를 덮어썼습니다)
 
1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;main method
;main method
;main 메소드
;메인 메소드
*클래스의 시작점
*클래스의 시작점
*용도: 애플리케이션 시작, 단위/전체 테스트
*용도: 애플리케이션 시작, 단위/전체 테스트

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 }}