{"id":327,"date":"2009-07-01T06:39:53","date_gmt":"2009-07-01T06:39:53","guid":{"rendered":"http:\/\/apollo89.com\/wordpress\/?p=327"},"modified":"2013-02-02T23:48:21","modified_gmt":"2013-02-02T14:48:21","slug":"hashtable-vs-hashmap","status":"publish","type":"post","link":"https:\/\/apollo89.com\/wordpress\/?p=327","title":{"rendered":"HashTable vs HashMap"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>HashTable &#038; HashMap<\/p>\n<p>HashTable<\/p>\n<p>HashTable\uc740 \ud0a4\ub098 \uac12\uc5d0 Null\uc744 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\ub294\ub2e4<\/p>\n<p>\ub610\ud55c Object\uc5d0 \uc815\uc758\ub41c hashCode()\uc640 equals() \ub9e4\uc11c\ub4dc\ub97c \uc7ac\uc758\ud558\ub294 \uac1d\uccb4\ub4e4\ub9cc \uc800\uc7a5\ud560 \uc218 \uc788\ub2e4<\/p>\n<p>\ub2e4\ud589\ud788\ub3c4 \uc790\ubc14 \ub0b4\uc7a5 \ud074\ub798\uc2a4\ub4e4\uc740 \ub300\ubd80\ubd84 hashCode()\uac00 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4\ub294 \uac83\uc744 \uc54c\uace0 \uc788\uc744 \uac83\uc774\ub2e4<\/p>\n<p>\ud2b9\ud788 String\ud0c0\uc785\uc774 hashCode(), equals()\ub9e4\uc11c\ub4dc\uac00 \ub450\uac1c \ubaa8\ub450 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4<\/p>\n<p>HashTable\uc740 Map \ud074\ub798\uc2a4\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c \ubc18\ubcf5\uc790(interator)\ub97c \uc9c1\uc811 \uc81c\uacf5\ud558\uc9c0 \uc54a\ub294\ub2e4<\/p>\n<p>\ub2e4\uc74c \ub450\uac00\uc9c0 \ubc29\uc2dd\uc73c\ub85c HashTable\uc758 \ub0b4\uc6a9\uc744 \ucd9c\ub825\ud560\uc218\uc788\ub2e4<\/p>\n<pre class=\"lang:java decode:true \" >HashTable hashTable= new HashTable();\r\nhashTable.put(\"XML\", \"tag\");\r\nhashTable.put(\"oracle\", \"sql\");\r\nEnumeration keys=hashTable.keys();\r\nwhile(keys.hasMoreElements()) {\r\n    key=(String)keys.nextElement();\r\n    System.out.println(hashTable.get(key));\r\n}\r\n<\/pre>\n<p>\ub610\ub294<\/p>\n<pre class=\"lang:java decode:true \" >Set set=hashTable.keySet();\r\nIterator keys=set.interator();\r\nwhile(keys.hasNext()){\r\n    key=(String)keys.next();\r\n    System.out.println(hashTable.get(key));\r\n}<\/pre>\n<p>HashMap<\/p>\n<p>HashMap\uc740 \ud0a4\ub098 \uac12\uc5d0 Null\uc744 \ud5c8\uc6a9\ud55c\ub2e4<\/p>\n<p>HashMap \ucd9c\ub825\ubc29\ubc95\uc740 \ub2e4\uc74c\uc758 \ud55c\uac00\uc9c0 \ubc16\uc5d0 \uc5c6\ub2e4(Enumeration \uc9c0\uc6d0 \uc548\ud568)<\/p>\n<pre class=\"lang:java decode:true \" >HashMap hashMap=new HashMap();\r\nhashMap.put(\"XML\", \"tag\");\r\nhashMap.put(\"oracle\", \"sql\");\r\nSet set=hashMap.entrySet();\r\nIterator keys=set.iterator();\r\nwhile(keys.hasNext()){\r\n    key=(String)keys.next();\r\n    System.out.println(hashMap.get(key));\r\n}\r\n<\/pre>\n<p>\ub610\ud55c HashTable\uc740 thread safe**\uc758 \ud55c \uac1d\uccb4\uc774\uc9c0\ub9cc HashMap\uc740\uadf8\ub807\uc9c0 \ubabb\ud574 unsynchronized\ud558\ub2e4<\/p>\n<p>\uc774\ub9d0\uc740 \uc989 \uba40\ud2f0 \uc4f0\ub808\ub4dc \ud658\uacbd\uc774 \uc544\ub2c8\uba74 HashMap\uc744 \uc4f0\uba74 \uc18d\ub3c4\uac00 \ube60\ub974\ub2e4\ub294 \ub9d0\uc774\ub41c\ub2e4<\/p>\n<p>\uad73\uc774 \ub3d9\uae30\ud654 \ud558\uc790\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc0ac\uc6a9\ud574\uc57c\ud560\uac83\uc774\ub2e4<\/p>\n<pre class=\"lang:java decode:true \" >Map m=Collections.synchronizedMap(new HashMap(...));<\/pre>\n<p>\uac04\ub2e8\ud788 \uc815\ub9ac\ud558\uc790\uba74 HashMap\uc774 HashTable\uc5d0 \ube44\ud574 \uc880\ub354 \uc2e4\uc6a9\uc801\uc73c\ub85c \ubcc0\ud55c \ud615\ud0dc\ub77c\uace0 \ubcf4\uba74 \ub420\uac83\uc774\ub2e4<\/p>\n<p>\uc77c\ubc18\uc801\uc73c\ub85c \uc4f4\ub2e4\uba74 HashMap\uc744 \ucd94\ucc9c\ud558\ub294 \ubc14\uc774\ub2e4<\/p>\n<p>\ucd9c\ucc98 : http:\/\/cafe.naver.com\/inggi.cafe?iframe_url=\/ArticleRead.nhn%3Farticleid=48<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; HashTable &#038; HashMap HashTable HashTable\uc740 \ud0a4\ub098 \uac12\uc5d0 Null\uc744 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\ub294\ub2e4 \ub610\ud55c Object\uc5d0 \uc815\uc758\ub41c hashCode()\uc640 equals() \ub9e4\uc11c\ub4dc\ub97c \uc7ac\uc758\ud558\ub294 \uac1d\uccb4\ub4e4\ub9cc \uc800\uc7a5\ud560 \uc218 \uc788\ub2e4 \ub2e4\ud589\ud788\ub3c4 \uc790\ubc14 \ub0b4\uc7a5 \ud074\ub798\uc2a4\ub4e4\uc740 \ub300\ubd80\ubd84 hashCode()\uac00 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4\ub294 \uac83\uc744 \uc54c\uace0 \uc788\uc744 \uac83\uc774\ub2e4 \ud2b9\ud788 String\ud0c0\uc785\uc774 hashCode(), equals()\ub9e4\uc11c\ub4dc\uac00 \ub450\uac1c \ubaa8\ub450 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4 HashTable\uc740 Map \ud074\ub798\uc2a4\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c \ubc18\ubcf5\uc790(interator)\ub97c \uc9c1\uc811 \uc81c\uacf5\ud558\uc9c0 \uc54a\ub294\ub2e4 \ub2e4\uc74c \ub450\uac00\uc9c0 \ubc29\uc2dd\uc73c\ub85c HashTable\uc758 \ub0b4\uc6a9\uc744 \ucd9c\ub825\ud560\uc218\uc788\ub2e4 HashTable &#8230; <a title=\"HashTable vs HashMap\" class=\"read-more\" href=\"https:\/\/apollo89.com\/wordpress\/?p=327\" aria-label=\"HashTable vs HashMap\uc5d0 \ub300\ud574 \ub354 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uc138\uc694\">\ub354 \uc77d\uae30<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1187],"tags":[418,419,63],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-development","tag-hashmap","tag-hashtable","tag-oracle"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HashTable vs HashMap - Apollo89.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/apollo89.com\/wordpress\/?p=327\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HashTable vs HashMap - Apollo89.com\" \/>\n<meta property=\"og:description\" content=\"&nbsp; HashTable &#038; HashMap HashTable HashTable\uc740 \ud0a4\ub098 \uac12\uc5d0 Null\uc744 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\ub294\ub2e4 \ub610\ud55c Object\uc5d0 \uc815\uc758\ub41c hashCode()\uc640 equals() \ub9e4\uc11c\ub4dc\ub97c \uc7ac\uc758\ud558\ub294 \uac1d\uccb4\ub4e4\ub9cc \uc800\uc7a5\ud560 \uc218 \uc788\ub2e4 \ub2e4\ud589\ud788\ub3c4 \uc790\ubc14 \ub0b4\uc7a5 \ud074\ub798\uc2a4\ub4e4\uc740 \ub300\ubd80\ubd84 hashCode()\uac00 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4\ub294 \uac83\uc744 \uc54c\uace0 \uc788\uc744 \uac83\uc774\ub2e4 \ud2b9\ud788 String\ud0c0\uc785\uc774 hashCode(), equals()\ub9e4\uc11c\ub4dc\uac00 \ub450\uac1c \ubaa8\ub450 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4 HashTable\uc740 Map \ud074\ub798\uc2a4\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c \ubc18\ubcf5\uc790(interator)\ub97c \uc9c1\uc811 \uc81c\uacf5\ud558\uc9c0 \uc54a\ub294\ub2e4 \ub2e4\uc74c \ub450\uac00\uc9c0 \ubc29\uc2dd\uc73c\ub85c HashTable\uc758 \ub0b4\uc6a9\uc744 \ucd9c\ub825\ud560\uc218\uc788\ub2e4 HashTable ... \ub354 \uc77d\uae30\" \/>\n<meta property=\"og:url\" content=\"https:\/\/apollo89.com\/wordpress\/?p=327\" \/>\n<meta property=\"og:site_name\" content=\"Apollo89.com\" \/>\n<meta property=\"article:published_time\" content=\"2009-07-01T06:39:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-02T14:48:21+00:00\" \/>\n<meta name=\"author\" content=\"apollo89\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"apollo89\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327\"},\"author\":{\"name\":\"apollo89\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"headline\":\"HashTable vs HashMap\",\"datePublished\":\"2009-07-01T06:39:53+00:00\",\"dateModified\":\"2013-02-02T14:48:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327\"},\"wordCount\":46,\"commentCount\":0,\"keywords\":[\"HashMap\",\"HashTable\",\"\uc624\ub77c\ud074\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327\",\"name\":\"HashTable vs HashMap - Apollo89.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\"},\"datePublished\":\"2009-07-01T06:39:53+00:00\",\"dateModified\":\"2013-02-02T14:48:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=327#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/apollo89.com\\\/wordpress\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HashTable vs HashMap\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/\",\"name\":\"Apollo89.com\",\"description\":\"AI \u00b7 Development \u00b7 Security \u00b7 Automation \uc9c1\uc811 \uc124\uce58\ud558\uace0, \uc9c1\uc811 \uc368\ubcf4\uace0, \ubb38\uc81c\ub97c \ud574\uacb0\ud55c \uae30\ub85d\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\",\"name\":\"apollo89\",\"description\":\"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HashTable vs HashMap - Apollo89.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/apollo89.com\/wordpress\/?p=327","og_locale":"ko_KR","og_type":"article","og_title":"HashTable vs HashMap - Apollo89.com","og_description":"&nbsp; HashTable &#038; HashMap HashTable HashTable\uc740 \ud0a4\ub098 \uac12\uc5d0 Null\uc744 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\ub294\ub2e4 \ub610\ud55c Object\uc5d0 \uc815\uc758\ub41c hashCode()\uc640 equals() \ub9e4\uc11c\ub4dc\ub97c \uc7ac\uc758\ud558\ub294 \uac1d\uccb4\ub4e4\ub9cc \uc800\uc7a5\ud560 \uc218 \uc788\ub2e4 \ub2e4\ud589\ud788\ub3c4 \uc790\ubc14 \ub0b4\uc7a5 \ud074\ub798\uc2a4\ub4e4\uc740 \ub300\ubd80\ubd84 hashCode()\uac00 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4\ub294 \uac83\uc744 \uc54c\uace0 \uc788\uc744 \uac83\uc774\ub2e4 \ud2b9\ud788 String\ud0c0\uc785\uc774 hashCode(), equals()\ub9e4\uc11c\ub4dc\uac00 \ub450\uac1c \ubaa8\ub450 \uad6c\ud604\ub418\uc5b4\uc788\ub2e4 HashTable\uc740 Map \ud074\ub798\uc2a4\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c \ubc18\ubcf5\uc790(interator)\ub97c \uc9c1\uc811 \uc81c\uacf5\ud558\uc9c0 \uc54a\ub294\ub2e4 \ub2e4\uc74c \ub450\uac00\uc9c0 \ubc29\uc2dd\uc73c\ub85c HashTable\uc758 \ub0b4\uc6a9\uc744 \ucd9c\ub825\ud560\uc218\uc788\ub2e4 HashTable ... \ub354 \uc77d\uae30","og_url":"https:\/\/apollo89.com\/wordpress\/?p=327","og_site_name":"Apollo89.com","article_published_time":"2009-07-01T06:39:53+00:00","article_modified_time":"2013-02-02T14:48:21+00:00","author":"apollo89","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"apollo89","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/apollo89.com\/wordpress\/?p=327#article","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=327"},"author":{"name":"apollo89","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"headline":"HashTable vs HashMap","datePublished":"2009-07-01T06:39:53+00:00","dateModified":"2013-02-02T14:48:21+00:00","mainEntityOfPage":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=327"},"wordCount":46,"commentCount":0,"keywords":["HashMap","HashTable","\uc624\ub77c\ud074"],"articleSection":["Development"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/apollo89.com\/wordpress\/?p=327#respond"]}]},{"@type":"WebPage","@id":"https:\/\/apollo89.com\/wordpress\/?p=327","url":"https:\/\/apollo89.com\/wordpress\/?p=327","name":"HashTable vs HashMap - Apollo89.com","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/#website"},"datePublished":"2009-07-01T06:39:53+00:00","dateModified":"2013-02-02T14:48:21+00:00","author":{"@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"breadcrumb":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=327#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/apollo89.com\/wordpress\/?p=327"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/apollo89.com\/wordpress\/?p=327#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/apollo89.com\/wordpress"},{"@type":"ListItem","position":2,"name":"HashTable vs HashMap"}]},{"@type":"WebSite","@id":"https:\/\/apollo89.com\/wordpress\/#website","url":"https:\/\/apollo89.com\/wordpress\/","name":"Apollo89.com","description":"AI \u00b7 Development \u00b7 Security \u00b7 Automation \uc9c1\uc811 \uc124\uce58\ud558\uace0, \uc9c1\uc811 \uc368\ubcf4\uace0, \ubb38\uc81c\ub97c \ud574\uacb0\ud55c \uae30\ub85d","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/apollo89.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82","name":"apollo89","description":"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.","url":"https:\/\/apollo89.com\/wordpress\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=327"}],"version-history":[{"count":0,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"wp:attachment":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}