......
static method가 static 변수만을 사용하는 부분은 굳이 문제가 되지 않지만, static을 non-static으로 바꾸는 순간 각각의 object들에게 새로운 non-static method들을 복사해 주어야 하기 때문에, 자바 설계자가 남감할 것입니다. compiler가 모든 코드를 검사한 다음 static method를 처음부터 non-static으로 바꾸어 컴파일해도 되지만, 그러면 굳이 static으로 메서드를 만든 의미가 없어집니다.
......
'Java Programming' 카테고리의 다른 글
function pool (0) | 2008.11.13 |
---|---|
Java ascii code 출력 (0) | 2008.11.03 |
Java Memory Model (0) | 2008.10.08 |
downcasting/upcasting (with static) (0) | 2008.09.19 |
temporary method definition (0) | 2008.07.31 |