{"id":351,"date":"2015-04-18T20:32:19","date_gmt":"2015-04-18T12:32:19","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=351"},"modified":"2026-08-18T12:09:30","modified_gmt":"2026-08-18T04:09:30","slug":"115%e4%b8%aajava%e9%9d%a2%e8%af%95%e9%a2%98%e5%92%8c%e7%ad%94%e6%a1%88-%e7%bb%88%e6%9e%81%e5%88%97%e8%a1%a8%ef%bc%88%e4%b8%8a%ef%bc%89","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=351","title":{"rendered":"115\u4e2aJava\u9762\u8bd5\u9898\u548c\u7b54\u6848\u2014\u2014\u7ec8\u6781\u5217\u8868\uff08\u4e0a\uff09"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<p style=\"margin: 1em 0px;\">\u8fd9\u7bc7\u6574\u7406 Java \u9762\u8bd5\u91cc\u5e38\u89c1\u7684\u9898\u578b\uff0c\u65b9\u4fbf\u96c7\u4e3b\u8003\u67e5\u9762\u5411\u5bf9\u8c61\u548c Java \u57fa\u7840\u3002\u5168\u6587\u5206\u4e0a\u4e0b\u4e24\u7bc7\uff1a\u672c\u7bc7\uff08\u4e0a\uff09\u8986\u76d6 OOP \u7279\u6027\u3001Java \u5e38\u89c1\u95ee\u9898\u3001\u7ebf\u7a0b\u3001\u96c6\u5408\u3001\u5783\u573e\u6536\u96c6\uff1b<a href=\"http:\/\/www.importnew.com\/11028.html\" style=\"color: #4870ac; text-decoration: underline;\">\u7b2c\u4e8c\u7bc7<\/a> \u518d\u8c08\u5f02\u5e38\u3001Applet\u3001Swing\u3001JDBC\u3001RMI\u3001Servlet \u548c JSP\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u76ee\u5f55\u4ecd\u6307\u5411\u539f\u6587\u951a\u70b9\u3002\u4e0a\u7bc7\u5bf9\u5e94 ImportNew <a href=\"http:\/\/www.importnew.com\/10980.html\" style=\"color: #4870ac; text-decoration: underline;\">\u7b2c\u4e00\u7bc7<\/a>\u3002<\/p>\n<p><!--more--><\/p>\n<table style=\"display: table; text-align: left; overflow: auto; border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; overflow-wrap: break-word; word-break: break-all;\" width=\"800\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u7ae0\u8282<\/th>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u9898\u53f7<\/th>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u951a\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\"><a href=\"https:\/\/ai.zhousir.top\/?p=351#oop\" style=\"color: #4870ac; text-decoration: underline;\">\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08OOP\uff09<\/a><\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u2014<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">#oop<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\"><a href=\"https:\/\/ai.zhousir.top\/?p=351#general\" style=\"color: #4870ac; text-decoration: underline;\">\u5e38\u89c1\u7684 Java \u95ee\u9898<\/a><\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">1\u201310<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">#general<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\"><a href=\"https:\/\/ai.zhousir.top\/?p=351#thread\" style=\"color: #4870ac; text-decoration: underline;\">Java \u7ebf\u7a0b<\/a><\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">11\u201317<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">#thread<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\"><a href=\"https:\/\/ai.zhousir.top\/?p=351#collection\" style=\"color: #4870ac; text-decoration: underline;\">Java \u96c6\u5408\u7c7b<\/a><\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">18\u201334<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">#collection<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\"><a href=\"https:\/\/ai.zhousir.top\/?p=351#gc\" style=\"color: #4870ac; text-decoration: underline;\">\u5783\u573e\u6536\u96c6\u5668<\/a><\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">35\u201342<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">#gc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e00\u3001\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08OOP\uff09<\/h2>\n<p><span id=\"oop\"><\/span><\/p>\n<p style=\"margin: 1em 0px;\">Java \u662f\u652f\u6301\u5e76\u53d1\u3001\u57fa\u4e8e\u7c7b\u3001\u9762\u5411\u5bf9\u8c61\u7684\u8bed\u8a00\u3002\u9762\u5411\u5bf9\u8c61\u5f00\u53d1\u7684\u597d\u5904\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u4ee3\u7801\u6309\u6a21\u5757\u5f00\u53d1\uff0c\u66f4\u6613\u7ef4\u62a4\u548c\u4fee\u6539\u3002<\/section>\n<\/li>\n<li>\n<section>\u4ee3\u7801\u590d\u7528\u3002<\/section>\n<\/li>\n<li>\n<section>\u53ef\u9760\u6027\u548c\u7075\u6d3b\u6027\u66f4\u597d\u3002<\/section>\n<\/li>\n<li>\n<section>\u53ef\u7406\u89e3\u6027\u66f4\u5f3a\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u56db\u4e2a\u5173\u952e\u7279\u6027\uff1a<strong style=\"color: #4870ac;\">\u5c01\u88c5\u3001\u7ee7\u627f\u3001\u591a\u6001\u3001\u62bd\u8c61<\/strong>\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u5c01\u88c5<\/h3>\n<p style=\"margin: 1em 0px;\">\u5c01\u88c5\u8ba9\u5bf9\u8c61\u80fd\u85cf\u8d77\u5185\u90e8\u72b6\u6001\u548c\u884c\u4e3a\uff0c\u53ea\u66b4\u9732\u5c11\u91cf\u65b9\u6cd5\u7ed9\u5916\u754c\u6539\u6570\u636e\u3002Java \u6709\u4e09\u79cd\u4fee\u9970\u7b26\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">public<\/code>\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">private<\/code>\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">protected<\/code>\uff0c\u5206\u522b\u51b3\u5b9a\u540c\u5305\u3001\u8de8\u5305\u80fd\u770b\u5230\u4ec0\u4e48\u3002\u597d\u5904\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u85cf\u5c5e\u6027\uff0c\u4fdd\u62a4\u5185\u90e8\u72b6\u6001\u3002<\/section>\n<\/li>\n<li>\n<section>\u884c\u4e3a\u53ef\u4ee5\u5355\u72ec\u6539\u6216\u6269\u5c55\uff0c\u53ef\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u66f4\u597d\u3002<\/section>\n<\/li>\n<li>\n<section>\u51cf\u5c11\u5bf9\u8c61\u4e4b\u95f4\u7684\u4e0d\u826f\u4ea4\u4e92\uff0c\u6a21\u5757\u5316\u66f4\u5e72\u51c0\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u66f4\u591a\u7ec6\u8282\u89c1 <a href=\"http:\/\/examples.javacodegeeks.com\/java-basics\/encapsulation-in-java\/\" class=\"external\" target=\"_blank\" rel=\"nofollow\" style=\"color: #4870ac; text-decoration: underline;\">\u8fd9\u4efd\u5c01\u88c5\u6587\u6863<\/a>\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u591a\u6001<\/h3>\n<p style=\"margin: 1em 0px;\">\u591a\u6001\u662f\u8bed\u8a00\u7ed9\u4e0d\u540c\u5e95\u5c42\u6570\u636e\u7c7b\u578b\u63d0\u4f9b\u540c\u4e00\u5957\u63a5\u53e3\u7684\u80fd\u529b\u3002\u4f5c\u7528\u5728\u591a\u6001\u7c7b\u578b\u4e0a\u7684\u64cd\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u7528\u5230\u5176\u5b83\u7c7b\u578b\u7684\u503c\u4e0a\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u7ee7\u627f<\/h3>\n<p style=\"margin: 1em 0px;\">\u7ee7\u627f\u8ba9\u5bf9\u8c61\u4ece\u57fa\u7c7b\u62ff\u5230\u5b57\u6bb5\u548c\u65b9\u6cd5\uff0c\u4ece\u800c\u590d\u7528\u4ee3\u7801\uff0c\u4e5f\u80fd\u5728\u4e0d\u6539\u539f\u7c7b\u7684\u524d\u63d0\u4e0b\u7ed9\u73b0\u5b58\u7c7b\u52a0\u65b0\u7279\u6027\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u62bd\u8c61<\/h3>\n<p style=\"margin: 1em 0px;\">\u62bd\u8c61\u662f\u628a\u60f3\u6cd5\u4ece\u5177\u4f53\u5b9e\u4f8b\u91cc\u62bd\u51fa\u6765\uff0c\u6309\u529f\u80fd\u800c\u4e0d\u662f\u6309\u5b9e\u73b0\u7ec6\u8282\u6765\u5efa\u7c7b\u3002Java \u5141\u8bb8\u53ea\u66b4\u9732\u63a5\u53e3\u3001\u4e0d\u542b\u65b9\u6cd5\u5b9e\u73b0\u7684\u62bd\u8c61\u7c7b\u3002\u76ee\u7684\u5c31\u662f\u628a\u884c\u4e3a\u548c\u5b9e\u73b0\u62c6\u5f00\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u62bd\u8c61\u548c\u5c01\u88c5\u7684\u4e0d\u540c<\/h3>\n<p style=\"margin: 1em 0px;\">\u4e8c\u8005\u4e92\u8865\u3002\u62bd\u8c61\u5173\u5fc3\u5bf9\u8c61<strong style=\"color: #4870ac;\">\u505a\u4ec0\u4e48<\/strong>\uff0c\u5c01\u88c5\u5173\u5fc3<strong style=\"color: #4870ac;\">\u600e\u4e48\u505a<\/strong>\u3002\u901a\u5e38\u9760\u9690\u85cf\u5185\u90e8\u72b6\u6001\u6765\u5c01\u88c5\uff0c\u6240\u4ee5\u5c01\u88c5\u53ef\u4ee5\u770b\u6210\u63d0\u4f9b\u62bd\u8c61\u7684\u4e00\u79cd\u7b56\u7565\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e8c\u3001\u5e38\u89c1\u7684 Java \u95ee\u9898<\/h2>\n<p><span id=\"general\"><\/span><\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">1. \u4ec0\u4e48\u662f Java \u865a\u62df\u673a\uff1f\u4e3a\u4ec0\u4e48 Java \u88ab\u79f0\u4f5c\u300c\u5e73\u53f0\u65e0\u5173\u7684\u7f16\u7a0b\u8bed\u8a00\u300d\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">JVM \u662f\u80fd\u6267\u884c Java \u5b57\u8282\u7801\u7684\u865a\u62df\u673a\u8fdb\u7a0b\u3002\u6e90\u6587\u4ef6\u5148\u7f16\u8bd1\u6210\u5b57\u8282\u7801\uff0c\u518d\u7531 JVM \u6267\u884c\u3002<\/p>\n<p style=\"margin: 1em 0px;\">Java \u88ab\u8bbe\u8ba1\u6210\u540c\u4e00\u4efd\u7a0b\u5e8f\u80fd\u8dd1\u5728\u4efb\u610f\u5e73\u53f0\uff0c\u4e0d\u5fc5\u4e3a\u6bcf\u4e2a\u5e73\u53f0\u91cd\u5199\u6216\u91cd\u7f16\u8bd1\u3002JVM \u77e5\u9053\u5e95\u5c42\u786c\u4ef6\u7684\u6307\u4ee4\u957f\u5ea6\u548c\u5176\u5b83\u7279\u6027\uff0c\u628a\u8fd9\u4ef6\u4e8b\u625b\u4e0b\u6765\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">2. JDK \u548c JRE \u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">JRE\uff08Java \u8fd0\u884c\u65f6\u73af\u5883\uff09\u662f\u8981\u6267\u884c Java \u7a0b\u5e8f\u7684\u90a3\u5957 JVM\uff0c\u4e5f\u5305\u542b\u6267\u884c applet \u9700\u8981\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6\u3002JDK \u662f\u5b8c\u6574\u5f00\u53d1\u5305\uff0c\u5185\u542b JRE\u3001\u7f16\u8bd1\u5668\u4ee5\u53ca JavaDoc\u3001\u8c03\u8bd5\u5668\u7b49\uff0c\u7528\u6765\u5f00\u53d1\u3001\u7f16\u8bd1\u3001\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">3. static \u5173\u952e\u5b57\u662f\u4ec0\u4e48\u610f\u601d\uff1f\u80fd\u5426\u8986\u76d6 private \u6216 static \u65b9\u6cd5\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">static<\/code> \u8868\u793a\u6210\u5458\u53d8\u91cf\u6216\u65b9\u6cd5\u53ef\u4ee5\u5728\u6ca1\u6709\u5b9e\u4f8b\u7684\u60c5\u51b5\u4e0b\u8bbf\u95ee\u3002static \u65b9\u6cd5\u4e0d\u80fd\u88ab\u8986\u76d6\uff1a\u8986\u76d6\u9760\u8fd0\u884c\u65f6\u52a8\u6001\u7ed1\u5b9a\uff0cstatic \u662f\u7f16\u8bd1\u671f\u9759\u6001\u7ed1\u5b9a\uff0c\u8ddf\u4efb\u4f55\u5b9e\u4f8b\u65e0\u5173\uff0c\u6982\u5ff5\u4e0a\u5c31\u4e0d\u9002\u7528\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">4. \u80fd\u5426\u5728 static \u73af\u5883\u4e2d\u8bbf\u95ee\u975e static \u53d8\u91cf\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">static \u53d8\u91cf\u5c5e\u4e8e\u7c7b\uff0c\u6240\u6709\u5b9e\u4f8b\u5171\u4eab\u4e00\u4efd\uff0c\u7c7b\u88ab JVM \u8f7d\u5165\u65f6\u521d\u59cb\u5316\u3002\u4e0d\u7528\u5b9e\u4f8b\u53bb\u78b0\u975e static \u53d8\u91cf\uff0c\u7f16\u8bd1\u5668\u4f1a\u62a5\u9519\uff1a\u90a3\u4e9b\u53d8\u91cf\u8fd8\u6ca1\u521b\u5efa\uff0c\u4e5f\u6ca1\u7ed1\u5230\u4efb\u4f55\u5b9e\u4f8b\u4e0a\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">5. Java \u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u6709\u54ea\u4e9b\uff1f\u4ec0\u4e48\u662f\u81ea\u52a8\u62c6\u88c5\u7bb1\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u516b\u79cd\u57fa\u672c\u7c7b\u578b\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>byte<\/section>\n<\/li>\n<li>\n<section>short<\/section>\n<\/li>\n<li>\n<section>int<\/section>\n<\/li>\n<li>\n<section>long<\/section>\n<\/li>\n<li>\n<section>float<\/section>\n<\/li>\n<li>\n<section>double<\/section>\n<\/li>\n<li>\n<section>boolean<\/section>\n<\/li>\n<li>\n<section>char<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u81ea\u52a8\u88c5\u7bb1\u662f\u7f16\u8bd1\u5668\u5728\u57fa\u672c\u7c7b\u578b\u548c\u5bf9\u5e94\u5305\u88c5\u7c7b\u4e4b\u95f4\u505a\u7684\u8f6c\u6362\uff0c\u4f8b\u5982 int \u2192 Integer\u3001double \u2192 Double\uff1b\u53cd\u8fc7\u6765\u5c31\u662f\u62c6\u7bb1\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">6. \u65b9\u6cd5\u8986\u76d6\uff08Overriding\uff09\u548c\u65b9\u6cd5\u91cd\u8f7d\uff08Overloading\uff09\u662f\u4ec0\u4e48\u610f\u601d\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u91cd\u8f7d\uff1a\u540c\u4e00\u4e2a\u7c7b\u91cc\u591a\u4e2a\u65b9\u6cd5\u540c\u540d\u4f46\u53c2\u6570\u4e0d\u540c\u3002\u8986\u76d6\uff1a\u5b50\u7c7b\u91cd\u65b0\u5b9a\u4e49\u7236\u7c7b\u65b9\u6cd5\uff0c\u5fc5\u987b\u540c\u540d\u3001\u540c\u53c2\u6570\u5217\u8868\u3001\u540c\u8fd4\u56de\u7c7b\u578b\uff1b\u8986\u76d6\u65b9\u4e0d\u80fd\u6536\u7d27\u88ab\u8986\u76d6\u65b9\u6cd5\u7684\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">7. \u4ec0\u4e48\u662f\u6784\u9020\u51fd\u6570\uff1f\u6784\u9020\u51fd\u6570\u91cd\u8f7d\uff1f\u590d\u5236\u6784\u9020\u51fd\u6570\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u521b\u5efa\u65b0\u5bf9\u8c61\u65f6\u4f1a\u8c03\u6784\u9020\u51fd\u6570\u3002\u6bcf\u4e2a\u7c7b\u90fd\u6709\uff1b\u7a0b\u5e8f\u5458\u4e0d\u5199\u65f6\uff0c\u7f16\u8bd1\u5668\u751f\u6210\u9ed8\u8ba4\u6784\u9020\u3002\u6784\u9020\u51fd\u6570\u4e5f\u53ef\u4ee5\u91cd\u8f7d\uff0c\u6bcf\u4e2a\u5fc5\u987b\u6709\u81ea\u5df1\u552f\u4e00\u7684\u53c2\u6570\u5217\u8868\u3002Java \u4e0d\u50cf C++ \u90a3\u6837\u652f\u6301\u590d\u5236\u6784\u9020\u51fd\u6570\uff1a\u4f60\u4e0d\u5199\u7684\u8bdd\uff0cJava \u4e5f\u4e0d\u4f1a\u81ea\u52a8\u751f\u6210\u4e00\u4efd\u590d\u5236\u6784\u9020\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">8. Java \u652f\u6301\u591a\u7ee7\u627f\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u4e0d\u652f\u6301\u3002\u6bcf\u4e2a\u7c7b\u53ea\u80fd\u7ee7\u627f\u4e00\u4e2a\u7c7b\uff0c\u4f46\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u63a5\u53e3\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">9. \u63a5\u53e3\u548c\u62bd\u8c61\u7c7b\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u63a5\u53e3\u91cc\u7684\u65b9\u6cd5\u9ed8\u8ba4\u90fd\u662f\u62bd\u8c61\u7684\uff1b\u62bd\u8c61\u7c7b\u53ef\u4ee5\u540c\u65f6\u6709\u62bd\u8c61\u65b9\u6cd5\u548c\u5177\u4f53\u65b9\u6cd5\u3002<\/section>\n<\/li>\n<li>\n<section>\u7c7b\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u63a5\u53e3\uff0c\u53ea\u80fd\u7ee7\u627f\u4e00\u4e2a\u62bd\u8c61\u7c7b\u3002<\/section>\n<\/li>\n<li>\n<section>\u5b9e\u73b0\u63a5\u53e3\u5fc5\u987b\u5b9e\u73b0\u5168\u90e8\u65b9\u6cd5\uff1b\u7ee7\u627f\u62bd\u8c61\u7c7b\u53ef\u4ee5\u4e0d\u5b9e\u73b0\u5168\u90e8\uff0c\u4f46\u81ea\u5df1\u4e5f\u5f97\u58f0\u660e\u4e3a\u62bd\u8c61\u3002<\/section>\n<\/li>\n<li>\n<section>\u62bd\u8c61\u7c7b\u53ef\u4ee5\u5728\u4e0d\u63d0\u4f9b\u63a5\u53e3\u65b9\u6cd5\u5b9e\u73b0\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u63a5\u53e3\u3002<\/section>\n<\/li>\n<li>\n<section>\u63a5\u53e3\u91cc\u7684\u53d8\u91cf\u9ed8\u8ba4 final\uff1b\u62bd\u8c61\u7c7b\u53ef\u4ee5\u6709\u975e final \u53d8\u91cf\u3002<\/section>\n<\/li>\n<li>\n<section>\u63a5\u53e3\u6210\u5458\u9ed8\u8ba4 public\uff1b\u62bd\u8c61\u7c7b\u53ef\u4ee5\u662f private\u3001protected \u6216 public\u3002<\/section>\n<\/li>\n<li>\n<section>\u63a5\u53e3\u7edd\u5bf9\u62bd\u8c61\uff0c\u4e0d\u80fd\u5b9e\u4f8b\u5316\u3002\u62bd\u8c61\u7c7b\u4e5f\u4e0d\u80fd new\uff0c\u4f46\u5982\u679c\u6709 main \u4ecd\u53ef\u88ab\u8c03\u7528\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u4e5f\u53ef\u53c2\u8003 <a href=\"http:\/\/www.javacodegeeks.com\/2014\/04\/abstract-class-versus-interface-in-the-jdk-8-era.html\" class=\"external\" target=\"_blank\" rel=\"nofollow\" style=\"color: #4870ac; text-decoration: underline;\">JDK 8 \u91cc\u62bd\u8c61\u7c7b\u548c\u63a5\u53e3\u7684\u533a\u522b<\/a>\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">10. \u4ec0\u4e48\u662f\u503c\u4f20\u9012\u548c\u5f15\u7528\u4f20\u9012\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u503c\u4f20\u9012\uff1a\u4f20\u7684\u662f\u5bf9\u8c61\u7684\u4e00\u4efd\u526f\u672c\uff0c\u6539\u526f\u672c\u4e0d\u5f71\u54cd\u6e90\u5bf9\u8c61\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5f15\u7528\u4f20\u9012\uff1a\u4f20\u7684\u4e0d\u662f\u5b9e\u9645\u5bf9\u8c61\uff0c\u800c\u662f\u5f15\u7528\uff1b\u5916\u9762\u901a\u8fc7\u5f15\u7528\u505a\u7684\u4fee\u6539\uff0c\u6240\u6709\u6301\u6709\u8be5\u5f15\u7528\u7684\u5730\u65b9\u90fd\u80fd\u770b\u89c1\u3002\uff08Java \u65b9\u6cd5\u53c2\u6570\u672c\u8eab\u4ecd\u662f\u503c\u4f20\u9012\uff0c\u4f20\u5f15\u7528\u7c7b\u578b\u65f6\u4f20\u9012\u7684\u662f\u5f15\u7528\u7684\u526f\u672c\u3002\uff09<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e09\u3001Java \u7ebf\u7a0b<\/h2>\n<p><span id=\"thread\"><\/span><\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">11. \u8fdb\u7a0b\u548c\u7ebf\u7a0b\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u8fdb\u7a0b\u662f\u6b63\u5728\u6267\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\uff1b\u7ebf\u7a0b\u662f\u8fdb\u7a0b\u5185\u90e8\u7684\u4e00\u6761\u6267\u884c\u5e8f\u5217\u3002\u4e00\u4e2a\u8fdb\u7a0b\u53ef\u4ee5\u6709\u591a\u6761\u7ebf\u7a0b\u3002\u7ebf\u7a0b\u4e5f\u53eb\u8f7b\u91cf\u7ea7\u8fdb\u7a0b\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">12. \u521b\u5efa\u7ebf\u7a0b\u6709\u51e0\u79cd\u65b9\u5f0f\uff1f\u4f60\u559c\u6b22\u54ea\u4e00\u79cd\uff1f\u4e3a\u4ec0\u4e48\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u7ee7\u627f Thread \u7c7b<\/section>\n<\/li>\n<li>\n<section>\u5b9e\u73b0 Runnable \u63a5\u53e3<\/section>\n<\/li>\n<li>\n<section>\u7528 Executor \u6846\u67b6\u521b\u5efa\u7ebf\u7a0b\u6c60<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u66f4\u53d7\u6b22\u8fce\u7684\u662f\u5b9e\u73b0 Runnable\uff1a\u4e0d\u5fc5\u518d\u7ee7\u627f Thread\u3002\u82e5\u4e1a\u52a1\u7c7b\u5df2\u7ecf\u7ee7\u627f\u4e86\u522b\u7684\u7c7b\uff0cJava \u53c8\u6ca1\u6709\u591a\u7ee7\u627f\uff0c\u5c31\u53ea\u80fd\u8d70\u63a5\u53e3\u3002\u7ebf\u7a0b\u6c60\u4e5f\u9ad8\u6548\uff0c\u5bb9\u6613\u5b9e\u73b0\u548c\u4f7f\u7528\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">13. \u6982\u62ec\u7ebf\u7a0b\u7684\u51e0\u79cd\u53ef\u7528\u72b6\u6001\u3002<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><strong style=\"color: #4870ac;\">\u5c31\u7eea\uff08Runnable\uff09<\/strong>\uff1a\u51c6\u5907\u8fd0\u884c\uff0c\u4e0d\u4e00\u5b9a\u7acb\u523b\u6267\u884c\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">\u8fd0\u884c\u4e2d\uff08Running\uff09<\/strong>\uff1a\u6b63\u5728\u6267\u884c\u7ebf\u7a0b\u4ee3\u7801\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">\u7b49\u5f85\u4e2d\uff08Waiting\uff09<\/strong>\uff1a\u963b\u585e\uff0c\u7b49\u5916\u90e8\u5904\u7406\u7ed3\u675f\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">\u7761\u7720\u4e2d\uff08Sleeping\uff09<\/strong>\uff1a\u88ab\u5f3a\u5236\u7761\u7720\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">I\/O \u963b\u585e\uff08Blocked on I\/O\uff09<\/strong>\uff1a\u7b49 I\/O \u5b8c\u6210\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">\u540c\u6b65\u963b\u585e\uff08Blocked on Synchronization\uff09<\/strong>\uff1a\u7b49\u9501\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">\u6b7b\u4ea1\uff08Dead\uff09<\/strong>\uff1a\u6267\u884c\u5b8c\u6bd5\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">14. \u540c\u6b65\u65b9\u6cd5\u548c\u540c\u6b65\u4ee3\u7801\u5757\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u6bcf\u4e2a\u5bf9\u8c61\u4e00\u628a\u9501\u3002\u7ebf\u7a0b\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">synchronized<\/code> \u62ff\u8fd9\u628a\u9501\u3002\u53ef\u4ee5\u52a0\u5728\u65b9\u6cd5\u4e0a\uff08\u7c97\u7c92\u5ea6\uff09\u6216\u4ee3\u7801\u5757\u4e0a\uff08\u7ec6\u7c92\u5ea6\uff09\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">15. \u5728\u76d1\u89c6\u5668\uff08Monitor\uff09\u5185\u90e8\u5982\u4f55\u505a\u7ebf\u7a0b\u540c\u6b65\uff1f\u7a0b\u5e8f\u5e94\u8be5\u505a\u54ea\u79cd\u7ea7\u522b\u7684\u540c\u6b65\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u76d1\u89c6\u5668\u548c\u9501\u5728 JVM \u91cc\u914d\u5957\u4f7f\u7528\u3002\u76d1\u89c6\u5668\u76ef\u7740\u4e00\u5757\u540c\u6b65\u4ee3\u7801\uff0c\u4fdd\u8bc1\u4e00\u6b21\u53ea\u6709\u4e00\u6761\u7ebf\u7a0b\u6267\u884c\u3002\u6bcf\u4e2a\u76d1\u89c6\u5668\u5173\u8054\u4e00\u4e2a\u5bf9\u8c61\u5f15\u7528\u3002\u7ebf\u7a0b\u6ca1\u62ff\u5230\u9501\uff0c\u5c31\u4e0d\u8bb8\u8fdb\u540c\u6b65\u4ee3\u7801\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">16. \u4ec0\u4e48\u662f\u6b7b\u9501\uff08deadlock\uff09\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u4e24\u4e2a\u8fdb\u7a0b\u90fd\u5728\u7b49\u5bf9\u65b9\u6267\u884c\u5b8c\u624d\u80fd\u7ee7\u7eed\uff0c\u7ed3\u679c\u4e24\u8fb9\u90fd\u9677\u5165\u65e0\u9650\u7b49\u5f85\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">17. \u5982\u4f55\u786e\u4fdd N \u4e2a\u7ebf\u7a0b\u8bbf\u95ee N \u4e2a\u8d44\u6e90\u540c\u65f6\u53c8\u4e0d\u5bfc\u81f4\u6b7b\u9501\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u6307\u5b9a\u83b7\u53d6\u9501\u7684\u987a\u5e8f\uff0c\u5e76\u5f3a\u5236\u6240\u6709\u7ebf\u7a0b\u6309\u540c\u4e00\u987a\u5e8f\u52a0\u9501\u3001\u6309\u540c\u4e00\u987a\u5e8f\u91ca\u653e\u3002\u987a\u5e8f\u4e00\u81f4\u5c31\u4e0d\u4f1a\u73af\u7b49\u5f85\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u56db\u3001Java \u96c6\u5408\u7c7b<\/h2>\n<p><span id=\"collection\"><\/span><\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">18. Java \u96c6\u5408\u7c7b\u6846\u67b6\u7684\u57fa\u672c\u63a5\u53e3\u6709\u54ea\u4e9b\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><strong style=\"color: #4870ac;\">Collection<\/strong>\uff1a\u4e00\u7ec4\u5bf9\u8c61\uff0c\u6bcf\u4e2a\u90fd\u662f\u5b50\u5143\u7d20\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">Set<\/strong>\uff1a\u4e0d\u5305\u542b\u91cd\u590d\u5143\u7d20\u7684 Collection\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">List<\/strong>\uff1a\u6709\u987a\u5e8f\uff0c\u53ef\u4ee5\u91cd\u590d\u3002<\/section>\n<\/li>\n<li>\n<section><strong style=\"color: #4870ac;\">Map<\/strong>\uff1a\u952e\u6620\u5c04\u5230\u503c\uff0c\u952e\u4e0d\u80fd\u91cd\u590d\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">19. \u4e3a\u4ec0\u4e48\u96c6\u5408\u7c7b\u6ca1\u6709\u5b9e\u73b0 Cloneable \u548c Serializable \u63a5\u53e3\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u96c6\u5408\u63a5\u53e3\u53ea\u89c4\u5b9a\u4e00\u7ec4\u5143\u7d20\u3002\u6bcf\u79cd\u5177\u4f53\u5b9e\u73b0\u53ef\u4ee5\u7528\u81ea\u5df1\u7684\u65b9\u5f0f\u4fdd\u5b58\u548c\u6392\u5e8f\uff1b\u6709\u7684\u5141\u8bb8\u91cd\u590d\u952e\uff0c\u6709\u7684\u4e0d\u5141\u8bb8\u3002\u514b\u9686\u548c\u5e8f\u5217\u5316\u7684\u8bed\u4e49\u8ddf\u5177\u4f53\u5b9e\u73b0\u76f8\u5173\uff0c\u6240\u4ee5\u8be5\u7531\u5b9e\u73b0\u7c7b\u81ea\u5df1\u51b3\u5b9a\u600e\u4e48 clone \/ serialize\u3002\uff08\u539f\u6587\u7b2c 20 \u9898\u540e\u534a\u6bb5\u8865\u4e86\u8fd9\u6761\u7406\u7531\u3002\uff09<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">20. \u4ec0\u4e48\u662f\u8fed\u4ee3\u5668\uff08Iterator\uff09\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">Iterator \u63d0\u4f9b\u8fed\u4ee3\u96c6\u5408\u5143\u7d20\u7684\u65b9\u6cd5\u3002\u6bcf\u4e2a\u96c6\u5408\u7c7b\u90fd\u6709\u80fd\u8fd4\u56de\u8fed\u4ee3\u5668\u7684\u65b9\u6cd5\u3002\u8fed\u4ee3\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u5220\u9664\u5e95\u5c42\u96c6\u5408\u7684\u5143\u7d20\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">21. Iterator \u548c ListIterator \u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>Iterator \u80fd\u904d\u5386 Set \u548c List\uff1bListIterator \u53ea\u80fd\u904d\u5386 List\u3002<\/section>\n<\/li>\n<li>\n<section>Iterator \u53ea\u80fd\u5411\u524d\uff1bListIterator \u53ef\u4ee5\u5411\u524d\u4e5f\u53ef\u4ee5\u5411\u540e\u3002<\/section>\n<\/li>\n<li>\n<section>ListIterator \u5b9e\u73b0\u4e86 Iterator\uff0c\u8fd8\u652f\u6301\u589e\u52a0\u3001\u66ff\u6362\u3001\u53d6\u524d\u4e00\u4e2a\/\u540e\u4e00\u4e2a\u7d22\u5f15\u7b49\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">22. \u5feb\u901f\u5931\u8d25\uff08fail-fast\uff09\u548c\u5b89\u5168\u5931\u8d25\uff08fail-safe\uff09\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u5b89\u5168\u5931\u8d25\u7684\u8fed\u4ee3\u5668\u57fa\u4e8e\u5e95\u5c42\u96c6\u5408\u7684\u62f7\u8d1d\uff0c\u6e90\u96c6\u5408\u88ab\u6539\u4e5f\u4e0d\u53d7\u5f71\u54cd\u3002<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">java.util<\/code> \u4e0b\u7684\u96c6\u5408\u90fd\u662f\u5feb\u901f\u5931\u8d25\uff0c<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">java.util.concurrent<\/code> \u4e0b\u7684\u662f\u5b89\u5168\u5931\u8d25\u3002\u5feb\u901f\u5931\u8d25\u4f1a\u629b <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">ConcurrentModificationException<\/code>\uff0c\u5b89\u5168\u5931\u8d25\u4e0d\u4f1a\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">23. HashMap \u7684\u5de5\u4f5c\u539f\u7406\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u4ee5\u952e\u503c\u5bf9\u5b58\u50a8\u3002\u9760 hash \u51fd\u6570\uff0c\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">hashCode()<\/code> \u548c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">equals()<\/code> \u5b8c\u6210\u6dfb\u52a0\u548c\u68c0\u7d22\u3002<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">put()<\/code> \u65f6\u8ba1\u7b97 key \u7684 hash\uff0c\u653e\u5230\u5408\u9002\u7d22\u5f15\uff1bkey \u5df2\u5b58\u5728\u5219\u66f4\u65b0 value\u3002\u91cd\u8981\u53c2\u6570\uff1a\u5bb9\u91cf\uff08capacity\uff09\u3001\u8d1f\u8f7d\u56e0\u5b50\uff08load factor\uff09\u3001\u6269\u5bb9\u9608\u503c\uff08threshold\uff09\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">24. hashCode() \u548c equals() \u7684\u91cd\u8981\u6027\u4f53\u73b0\u5728\u4ec0\u4e48\u5730\u65b9\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">HashMap \u7528\u5b83\u4eec\u786e\u5b9a\u952e\u503c\u5bf9\u7d22\u5f15\uff0c\u6309\u952e\u53d6\u503c\u65f6\u4e5f\u7528\u3002\u5b9e\u73b0\u4e0d\u5bf9\uff0c\u4e24\u4e2a\u4e0d\u540c key \u53ef\u80fd\u5f97\u5230\u76f8\u540c hash\uff0c\u88ab\u5f53\u6210\u76f8\u7b49\uff1b\u67e5\u91cd\u4e5f\u9760\u5b83\u4eec\u3002\u5bf9\u6b63\u786e\u6027\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">25. HashMap \u548c Hashtable \u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u90fd\u5b9e\u73b0 Map\uff0c\u5f88\u591a\u7279\u6027\u76f8\u4f3c\u3002<\/section>\n<\/li>\n<li>\n<section>HashMap \u5141\u8bb8 key\u3001value \u4e3a null\uff1bHashtable \u90fd\u4e0d\u5141\u8bb8\u3002<\/section>\n<\/li>\n<li>\n<section>Hashtable \u540c\u6b65\uff0cHashMap \u4e0d\u540c\u6b65\uff1a\u5355\u7ebf\u7a0b\u7528 HashMap\uff0c\u591a\u7ebf\u7a0b\u624d\u8003\u8651 Hashtable\u3002<\/section>\n<\/li>\n<li>\n<section>HashMap \u63d0\u4f9b\u53ef\u8fed\u4ee3\u7684\u952e\u96c6\u5408\uff0c\u5feb\u901f\u5931\u8d25\uff1bHashtable \u63d0\u4f9b Enumeration\u3002<\/section>\n<\/li>\n<li>\n<section>\u4e00\u822c\u8ba4\u4e3a Hashtable \u662f\u9057\u7559\u7c7b\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">26. \u6570\u7ec4\uff08Array\uff09\u548c ArrayList \u6709\u4ec0\u4e48\u533a\u522b\uff1f\u4ec0\u4e48\u65f6\u5019\u8be5\u7528 Array\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>Array \u80fd\u88c5\u57fa\u672c\u7c7b\u578b\u548c\u5bf9\u8c61\uff1bArrayList \u53ea\u80fd\u88c5\u5bf9\u8c61\u3002<\/section>\n<\/li>\n<li>\n<section>Array \u5927\u5c0f\u56fa\u5b9a\uff1bArrayList \u52a8\u6001\u3002<\/section>\n<\/li>\n<li>\n<section>ArrayList \u65b9\u6cd5\u66f4\u591a\uff1aaddAll\u3001removeAll\u3001iterator \u7b49\u3002<\/section>\n<\/li>\n<li>\n<section>\u96c6\u5408\u5bf9\u57fa\u672c\u7c7b\u578b\u9760\u81ea\u52a8\u88c5\u7bb1\uff0c\u5199\u8d77\u6765\u7701\u4e8b\uff1b\u5904\u7406\u56fa\u5b9a\u5927\u5c0f\u7684\u57fa\u672c\u7c7b\u578b\u65f6\uff0c\u6570\u7ec4\u66f4\u5feb\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">27. ArrayList \u548c LinkedList \u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>ArrayList \u5e95\u5c42\u6570\u7ec4\uff0c\u968f\u673a\u8bbf\u95ee O(1)\uff1bLinkedList \u53cc\u5411\u94fe\u8868\uff0c\u67e5\u627e O(n)\u3002<\/section>\n<\/li>\n<li>\n<section>LinkedList \u63d2\u5165\u3001\u5220\u9664\u901a\u5e38\u66f4\u5feb\uff0c\u4e0d\u5fc5\u50cf\u6570\u7ec4\u90a3\u6837\u642c\u5143\u7d20\u3001\u6539\u7d22\u5f15\u3002<\/section>\n<\/li>\n<li>\n<section>LinkedList \u66f4\u5360\u5185\u5b58\uff1a\u6bcf\u4e2a\u7ed3\u70b9\u4e24\u4e2a\u5f15\u7528\uff08\u524d\u9a71\u3001\u540e\u7ee7\uff09\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u4e5f\u53ef\u53c2\u8003 <a href=\"http:\/\/www.javacodegeeks.com\/2013\/12\/arraylist-vs-linkedlist.html\" class=\"external\" target=\"_blank\" rel=\"nofollow\" style=\"color: #4870ac; text-decoration: underline;\">ArrayList vs. LinkedList<\/a>\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">28. Comparable \u548c Comparator \u63a5\u53e3\u662f\u5e72\u4ec0\u4e48\u7684\uff1f\u5217\u51fa\u533a\u522b\u3002<\/h3>\n<p style=\"margin: 1em 0px;\">Comparable \u53ea\u6709\u4e00\u4e2a <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">compareTo()<\/code>\uff0c\u8fd4\u56de\u8d1f\/\u96f6\/\u6b63\uff0c\u8868\u793a\u5c0f\u4e8e\/\u7b49\u4e8e\/\u5927\u4e8e\u5df2\u6709\u5bf9\u8c61\u3002<\/p>\n<p style=\"margin: 1em 0px;\">Comparator \u6709 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">compare()<\/code> \u548c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">equals()<\/code>\u3002<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">compare()<\/code> \u7ed9\u4e24\u4e2a\u53c2\u6570\u6392\u5e8f\uff1b<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">equals()<\/code> \u5224\u65ad\u53e6\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u662f\u300c\u6392\u5e8f\u7ed3\u679c\u76f8\u540c\u300d\u7684 comparator\uff0c\u662f\u624d\u8fd4\u56de true\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">29. \u4ec0\u4e48\u662f Java \u4f18\u5148\u7ea7\u961f\u5217\uff08PriorityQueue\uff09\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u57fa\u4e8e\u4f18\u5148\u7ea7\u5806\u7684\u65e0\u754c\u961f\u5217\uff0c\u5143\u7d20\u6309\u81ea\u7136\u987a\u5e8f\u6392\uff1b\u521b\u5efa\u65f6\u4e5f\u53ef\u4ee5\u4f20\u5165\u6bd4\u8f83\u5668\u3002\u4e0d\u5141\u8bb8 null\uff08\u6ca1\u6709\u81ea\u7136\u987a\u5e8f\uff09\u3002\u4e0d\u662f\u7ebf\u7a0b\u5b89\u5168\u7684\u3002\u5165\u961f\u51fa\u961f O(log n)\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">30. \u4f60\u4e86\u89e3\u5927 O \u7b26\u53f7\u4e48\uff1f\u80fd\u7ed9\u51fa\u4e0d\u540c\u6570\u636e\u7ed3\u6784\u7684\u4f8b\u5b50\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u5927 O \u63cf\u8ff0\u5143\u7d20\u589e\u591a\u65f6\uff0c\u7b97\u6cd5\u89c4\u6a21\u6216\u6027\u80fd\u5728\u6700\u574f\u60c5\u51b5\u4e0b\u957f\u4ec0\u4e48\u6837\uff0c\u4e5f\u53ef\u4ee5\u63cf\u8ff0\u5185\u5b58\u6d88\u8017\u3002\u96c6\u5408\u7c7b\u5c31\u662f\u6570\u636e\u7ed3\u6784\uff0c\u7528\u65f6\u95f4\u3001\u5185\u5b58\u3001\u6027\u80fd\u4e0a\u7684\u5927 O \u6765\u9009\u5b9e\u73b0\u3002\u6570\u636e\u91cf\u5927\u65f6\u7279\u522b\u6709\u7528\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">31. \u5982\u4f55\u6743\u8861\u65e0\u5e8f\u6570\u7ec4\u8fd8\u662f\u6709\u5e8f\u6570\u7ec4\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u6709\u5e8f\u6570\u7ec4\u67e5\u627e O(log n)\uff0c\u65e0\u5e8f\u662f O(n)\u3002\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u662f O(n)\uff0c\u56e0\u4e3a\u5927\u7684\u5143\u7d20\u8981\u540e\u79fb\uff1b\u65e0\u5e8f\u63d2\u5165\u662f O(1)\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">32. Java \u96c6\u5408\u7c7b\u6846\u67b6\u7684\u6700\u4f73\u5b9e\u8df5\u6709\u54ea\u4e9b\uff1f<\/h3>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u6309\u9700\u6c42\u9009\u7c7b\u578b\uff1a\u5927\u5c0f\u56fa\u5b9a\u4e14\u4e8b\u5148\u77e5\u9053\uff0c\u7528 Array \u800c\u4e0d\u662f ArrayList\u3002<\/section>\n<\/li>\n<li>\n<section>\u80fd\u4f30\u8ba1\u5143\u7d20\u4e2a\u6570\u5c31\u8bbe\u521d\u59cb\u5bb9\u91cf\uff0c\u907f\u514d\u53cd\u590d rehash \/ \u6269\u5bb9\u3002<\/section>\n<\/li>\n<li>\n<section>\u603b\u662f\u7528\u6cdb\u578b\uff1a\u7c7b\u578b\u5b89\u5168\u3001\u53ef\u8bfb\u3001\u5065\u58ee\uff0c\u8fd8\u80fd\u907f\u514d\u8fd0\u884c\u65f6 ClassCastException\u3002<\/section>\n<\/li>\n<li>\n<section>\u7528 JDK \u4e0d\u53ef\u53d8\u7c7b\u5f53 Map \u7684\u952e\uff0c\u53ef\u907f\u514d\u81ea\u5df1\u5b9e\u73b0 hashCode \/ equals\u3002<\/section>\n<\/li>\n<li>\n<section>\u9762\u5411\u63a5\u53e3\u7f16\u7a0b\uff0c\u800c\u4e0d\u662f\u9762\u5411\u5b9e\u73b0\u3002<\/section>\n<\/li>\n<li>\n<section>\u5e95\u5c42\u96c6\u5408\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u957f\u5ea6 0 \u7684\u96c6\u5408\u6216\u6570\u7ec4\uff0c\u4e0d\u8981\u8fd4\u56de null\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">33. Enumeration \u548c Iterator \u7684\u533a\u522b\u6709\u54ea\u4e9b\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">Enumeration \u5927\u7ea6\u5feb\u4e00\u500d\uff0c\u5185\u5b58\u66f4\u5c11\u3002\u4f46 Iterator \u66f4\u5b89\u5168\uff1a\u5176\u5b83\u7ebf\u7a0b\u4e0d\u80fd\u6539\u6b63\u5728\u904d\u5386\u7684\u96c6\u5408\u3002Iterator \u8fd8\u5141\u8bb8\u5220\u9664\u5e95\u5c42\u5143\u7d20\uff0cEnumeration \u505a\u4e0d\u5230\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">34. HashSet \u548c TreeSet \u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">HashSet \u7528\u54c8\u5e0c\u8868\uff0c\u65e0\u5e8f\uff1badd \/ remove \/ contains \u662f O(1)\u3002TreeSet \u7528\u6811\uff0c\u6709\u5e8f\uff1b\u8fd9\u51e0\u4e2a\u65b9\u6cd5\u662f O(log n)\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e94\u3001\u5783\u573e\u6536\u96c6\u5668\uff08Garbage Collectors\uff09<\/h2>\n<p><span id=\"gc\"><\/span><\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">35. Java \u4e2d\u5783\u573e\u56de\u6536\u6709\u4ec0\u4e48\u76ee\u7684\uff1f\u4ec0\u4e48\u65f6\u5019\u8fdb\u884c\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u8bc6\u522b\u5e76\u4e22\u5f03\u5e94\u7528\u4e0d\u518d\u4f7f\u7528\u7684\u5bf9\u8c61\uff0c\u91ca\u653e\u5e76\u91cd\u7528\u8d44\u6e90\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">36. System.gc() \u548c Runtime.gc() \u4f1a\u505a\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u63d0\u793a JVM \u8fdb\u884c\u5783\u573e\u56de\u6536\u3002\u7acb\u523b\u5f00\u59cb\u8fd8\u662f\u5ef6\u8fdf\uff0c\u7531 JVM \u81ea\u5df1\u51b3\u5b9a\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">37. finalize() \u4ec0\u4e48\u65f6\u5019\u88ab\u8c03\u7528\uff1f\u6790\u6784\u7684\u76ee\u7684\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u91ca\u653e\u5bf9\u8c61\u5360\u7528\u7684\u5185\u5b58\u4e4b\u524d\uff0cGC \u4f1a\u8c03 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">finalize()<\/code>\u3002\u4e00\u822c\u5efa\u8bae\u5728\u8fd9\u91cc\u91ca\u653e\u5bf9\u8c61\u6301\u6709\u7684\u8d44\u6e90\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">38. \u5bf9\u8c61\u5f15\u7528\u88ab\u7f6e\u4e3a null\uff0cGC \u4f1a\u7acb\u5373\u91ca\u653e\u5185\u5b58\u5417\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u4e0d\u4f1a\u3002\u4e0b\u4e00\u4e2a\u56de\u6536\u5468\u671f\u91cc\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u624d\u662f\u53ef\u56de\u6536\u7684\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">39. Java \u5806\u7684\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u5b50\u7684\uff1f\u4ec0\u4e48\u662f\u6c38\u4e45\u4ee3\uff08Perm Gen\uff09\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u5806\u662f\u8fd0\u884c\u65f6\u6570\u636e\u533a\uff0c\u6240\u6709\u7c7b\u5b9e\u4f8b\u548c\u6570\u7ec4\u90fd\u5728\u5806\u4e0a\u5206\u914d\uff0cJVM \u542f\u52a8\u65f6\u521b\u5efa\uff0c\u7531 GC \u56de\u6536\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5806\u91cc\u65e2\u6709\u5b58\u6d3b\u5bf9\u8c61\uff08\u5e94\u7528\u8fd8\u80fd\u8bbf\u95ee\uff0c\u4e0d\u4f1a\u88ab\u6536\uff09\u4e5f\u6709\u6b7b\u4ea1\u5bf9\u8c61\uff08\u5df2\u7ecf\u4e0d\u53ef\u8bbf\u95ee\uff0c\u4f46\u8fd8\u6ca1\u88ab\u6536\u8d70\uff09\u3002\u6b7b\u4ea1\u5bf9\u8c61\u5728\u88ab\u6536\u8d70\u4e4b\u524d\u4e00\u76f4\u5360\u7740\u5806\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">40. \u4e32\u884c\uff08serial\uff09\u6536\u96c6\u5668\u548c\u541e\u5410\u91cf\uff08throughput\uff09\u6536\u96c6\u5668\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u541e\u5410\u91cf\u6536\u96c6\u5668\u4f7f\u7528\u5e76\u884c\u7248\u672c\u7684\u65b0\u751f\u4ee3\u6536\u96c6\u5668\uff0c\u9762\u5411\u4e2d\u7b49\u548c\u5927\u89c4\u6a21\u6570\u636e\u3002\u4e32\u884c\u6536\u96c6\u5668\u5bf9\u5927\u591a\u6570\u5c0f\u5e94\u7528\uff08\u73b0\u4ee3\u5904\u7406\u5668\u4e0a\u5927\u7ea6 100M \u5185\u5b58\uff09\u5c31\u591f\u4e86\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">41. \u5728 Java \u4e2d\uff0c\u5bf9\u8c61\u4ec0\u4e48\u65f6\u5019\u53ef\u4ee5\u88ab\u5783\u573e\u56de\u6536\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u5f53\u5bf9\u8c61\u5bf9\u5f53\u524d\u4f7f\u7528\u5b83\u7684\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u4e0d\u53ef\u89e6\u53ca\uff0c\u5c31\u53ef\u4ee5\u88ab\u56de\u6536\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">42. JVM \u7684\u6c38\u4e45\u4ee3\u4e2d\u4f1a\u53d1\u751f\u5783\u573e\u56de\u6536\u4e48\uff1f<\/h3>\n<p style=\"margin: 1em 0px;\">\u901a\u5e38\u8bf4\u6c38\u4e45\u4ee3\u4e0d\u8d70\u5e38\u89c4\u65b0\u751f\u4ee3\u56de\u6536\uff1b\u6c38\u4e45\u4ee3\u6ee1\u4e86\u6216\u8d85\u8fc7\u4e34\u754c\u503c\u4f1a\u89e6\u53d1 Full GC\u3002\u770b GC \u65e5\u5fd7\u4f1a\u53d1\u73b0\u6c38\u4e45\u4ee3\u4e5f\u4f1a\u88ab\u56de\u6536\uff0c\u6240\u4ee5\u6c38\u4e45\u4ee3\u5927\u5c0f\u8bbe\u5bf9\u4e86\u624d\u80fd\u5c11 Full GC\u3002\u53c2\u8003 <a href=\"http:\/\/www.javacodegeeks.com\/2013\/02\/java-8-from-permgen-to-metaspace.html\" class=\"external\" target=\"_blank\" rel=\"nofollow\" style=\"color: #4870ac; text-decoration: underline;\">Java 8\uff1a\u4ece\u6c38\u4e45\u4ee3\u5230\u5143\u6570\u636e\u533a<\/a>\u3002\uff08\u8bd1\u8005\u6ce8\uff1aJava 8 \u5df2\u79fb\u9664\u6c38\u4e45\u4ee3\uff0c\u6362\u6210\u540d\u4e3a\u5143\u6570\u636e\u533a\u7684 native \u5185\u5b58\u3002\uff09<\/p>\n<p style=\"margin: 1em 0px;\">\u539f\u6587\uff1a<a href=\"http:\/\/www.javacodegeeks.com\/2014\/04\/java-interview-questions-and-answers.html\" class=\"external\" target=\"_blank\" rel=\"nofollow\" style=\"color: #4870ac; text-decoration: underline;\">javacodegeeks<\/a> \u7ffb\u8bd1\uff1a<a href=\"http:\/\/www.importnew.com\/\" style=\"color: #4870ac; text-decoration: underline;\">ImportNew.com<\/a> &#8211; <a href=\"http:\/\/www.importnew.com\/author\/miracle1919\" style=\"color: #4870ac; text-decoration: underline;\">miracle1919<\/a> \u8bd1\u6587\uff1a<a href=\"http:\/\/www.importnew.com\/10980.html\" style=\"color: #4870ac; text-decoration: underline;\">http:\/\/www.importnew.com\/10980.html<\/a>\u3002<\/p>\n<blockquote style=\"display: block; font-size: 0.9em; border-left: 3px solid #4870ac; padding: 0.5em 1em; margin: 0px; background: #f6f8fa; color: #40464f;\">\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a\u4e0a\u7bc7 42 \u9898\uff1aOOP \u56db\u4ef6\u5957\u6253\u5e95\uff0c\u518d\u628a JVM\u3001\u7ebf\u7a0b\u3001\u96c6\u5408\u548c GC \u7684\u5bf9\u6bd4\u9898\u7b54\u6e05\u695a\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6574\u7406 Java \u9762\u8bd5\u91cc\u5e38\u89c1\u7684\u9898\u578b\uff0c\u65b9\u4fbf\u96c7\u4e3b\u8003\u67e5\u9762\u5411\u5bf9\u8c61\u548c Java \u57fa\u7840\u3002\u5168\u6587\u5206\u4e0a\u4e0b\u4e24\u7bc7\uff1a\u672c\u7bc7\uff08\u4e0a\uff09\u8986\u76d6  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46],"tags":[43,140],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions\/358"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}