intern (2) 썸네일형 리스트형 [Java/Tip] String.intern()은 메모리를 아낄 수 있다? 카페에 적었던글을 다시 옮겨 둡니다. ---- 안녕하세요. 찬 입니다. 오늘도 기초시리즈. String의 intern()에 대해서 이야기 해 보도록 하죠. intern() 에 대해서 알기 위해서는, 우선 String 자체에 대해서 좀 알아 봐야 합니다. String str1 = "Hello"; String str2 = "Hello"; String str3 = "Hello"; 이렇게 해 두면 str1과 str2와 str3는 모두 하나의 객체를 가리키고 있습니다. 왜 그런지 알아 봅시다. .java파일을 컴파일 하게 되면, .class파일이 만들어 지게 됩니다. .class 파일 안에는 현재 클래스의 정보가 들어있게 되겠지요. complie할때에 이미 저 문자를 사용해야 한다는것을 알수 있기 때문에 .cla.. [영어문장] 그런말이 어디 나와 있는데?? - Can you point me that says so? 출처 : http://www.studylang.com/21 오늘 rss를 읽다가 발견. http://forums.java.net/jive/index.jspa 에서 제공하는 RSS ( http://forums.java.net/jive/rss/rssmessages.jspa?categoryID=33&full=true ) 누군가가 물었다. aberrant Posts: 25 Is String.intern() thread safe? Posted: Sep 5, 2007 9:06 AM Reply I get a large report like structure of rows and columns of strings from over a socket connection. There are lots of repeated s.. 이전 1 다음