static

static 용도

접근 제어

Untitled

Untitled

package chap_06;

public class _01_Method {

    // 매개변수, 리턴 없음
    public static void sayHello(){
        System.out.println("Hello");
    }
    public static void main(String[] args) {
        sayHello();
    }

}