//static 변수 사용은 여러 객체가 사용하므로 메모리의 효율화 //static변수는 메모리에 한번 할당 public class VarCountTestEx4 { int count=0; //static int count=0; -> c1,c2 값이 1,2로 바뀜 //생성자 public VarCountTestEx4() { count++; System.out.println(count); } public static void main(String[] args) { // TODO Auto-generated method stub VarCountTestEx4 c1=new VarCountTestEx4(); VarCountTestEx4 c2=new VarCountTestEx4(); //1,1이 나오는 이유 //c1,c..