public class print {
        public static void main(String[] args) {
                System.out.println(7);
                System.out.println(3.15);
        }

}

이렇게 class가 하나만 선언된 소스는 컴파일이 아무 문제 없이 되는데

package javabook.ch06;

public class staticExam {
        static String msg;
        
        static void prtInfo(){
                System.out.println("StaticExam : prtInfo() 호출됨");
                System.out.println(msg);
        }        
}


class StaticExamRuns {

        /**
         * @param args
         */
        public static void main(String[] args) {
                // TODO Auto-generated method stub
                staticExam.msg = "staticExam 테스트 메시지";
                staticExam.prtInfo();

        }

}
이렇게 두개 class 선언하면 실행이 안되고 이전에 했던 실행이 되는 거야.. 이게 무슨 이클립스 문제인거 같긴 한데... 

그리고 그냥 물리적으로 클래스 선언 해서 나누면 또 실행 된다...이게 왜 이런건지 모르겠어 알려줘형들