URL text = new URL("http://www.naver.com");
InputStream isText = text.openStream();

URL text = new URL("http://www.naver.com");
HttpURLConnection http= (HttpURLConnection) text.openConnection();
InputStream isText = http.getInputStream();

이 두개의 차이점이 뭔가요?
URL 객체 받아와서
데이터를 주고 받을 수 있도록 InputStream으로 정의해주는거 아니에요??


openStream()과 getInputStream()이 무슨차이인지 잘 모르겠어요..