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