안녕하세요.
textView = (TextView) findViewById(R.id.textView);
lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationListener = new MyLocationListener();
lm.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
1000,
5,
locationListener);
}
처음에는 () 와 new 의 차이에 대해 의문이 없었습니다. 저는 단순히 ()는 형변환으로 이해를 했습니다.
그런데, ()로 만든 변수에서도 lm.reque... 처럼 메소드 접근이 가능한 것을 보고,
() 와 new의 차이점이 모호해졌습니다.
둘의 차이점이 무엇인지요.