222. static·인스턴스·지역 변수와 후위 증가
다음 Java 프로그램의 실행 결과를 쓰시오.
1class Box {2static int shared = 0;3int own = 0;4void add() {5int temp = 0;6shared++;7own++;8temp++;9System.out.println(shared + " " + own + " " + temp);10}11}12public class Main {13public static void main(String[] args) {14Box a = new Box();15Box b = new Box();16a.add();17b.add();18a.add();19System.out.println(Box.shared++);20System.out.println(Box.shared);21}22}