📄 index.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>J2SE Documentation</title><meta name="keywords" content="Java, documentation, Java, language, download, Java, Platform, Products, API, API's, Technical, Reference, Policies, Hints, FAQ, books, white, paper, data, sheet, JDK, tutorial, language, specification" /><meta name="description" content="Here is a collection of the documentation on the Java platform, tools, and APIs, including tutorials and specifications." /><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/><meta name="archiveFlag" content="false"/><link rel="stylesheet" href="/css/default_developer.css" /><script type='text/JavaScript' src='/js/popUp.js'></script></head><!--stopindex--><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" rightmargin="0" bgcolor="#ffffff"><a name="top"></a><!-- BEGIN MASTHEAD --><!-- BEGIN VNV1 MASTHEAD COMPONENT, thinner variation for content pages --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%" height="25" class="topnav"><form name="formsearch" action="http://developer.sun.com/dispatcher.jsp" method="post"><tr><td><a href="#mast"><img src="/im/a.gif" width="10" height="1" border="0" alt="Skip Masthead Links" /></a></td><td><a href="http://developers.sun.com">developers.sun.com</a></td><td width="100%"> </td> <td nowrap="nowrap"><span class="rightarrowblue">»</span> <a href="http://developers.sun.com/dispatcher.jsp?uid=6910020">search tips</a> | <b>Search:</b> </td><td><input name="qt" class="medium" size="7" value="" /></td><td> </td><td class="selectcell"><select class="globalsearch" name="uid"><option value="6910018" selected>in Developers' Site</option><option value="6910019">in Sun.com</option></select></td><td> </td><td valign="middle" align="left"><input type="submit" border="0" class="buttonred" value=" » " onmouseover="this.style.color='#fbe249';" onmouseout="this.style.color='#FFF';" /></td><td><img src="/im/a.gif" width="10" height="1" alt=" " /></td></tr></form></table><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><img src="/im/a.gif" width="10" height="1" border="0" alt=" " /></td><td valign="top" class="grey3"><a href="http://java.sun.com"><img src="/im/logo_java_grey.gif" width="180" height="53" border="0" alt=" " /></a></td><td><img src="/im/a.gif" width="10" height="1" border="0" alt=" " /></td><td class="sunblue" valign="top" nowrap="nowrap"><div class="pad6"><a href="http://developers.sun.com"><img src="/im/masthead_the_source.gif" width="262" height="25" border="0" alt="The Source for Developers" /></a><br /><a href="http://developers.sun.com/dispatcher.jsp?uid=6910022"><img src="/im/masthead_sdn_site.gif" width="169" height="15" border="0" alt="A Sun Developer Network Site" /></a></div></td><td class="sunblue"><img src="/im/a.gif" width="10" height="1" border="0" alt=" " /></td><td class="sunblue"><div class="pad6"><a href="http://developers.sun.com/dispatcher.jsp?uid=6910023"><img src="/im/masthead_prod_and_tech.gif" width="158" height="15" border="0" alt="Products and Technologies" /></a><br /><a href="http://developers.sun.com/dispatcher.jsp?uid=6910024"><img src="/im/masthead_tech_topics.gif" width="105" height="15" border="0" alt="Technical Topics" /></a></div><img src="/im/a.gif" width="196" height="1" border="0" alt=" " /></td><td class="sunblue" width="100%" valign="top" align="right"><div class="pad10"><a href="http://www.sun.com"><img src="/im/logo_sun.gif" width="72" height="33" border="0" alt="Sun Microsystems" /></a></div></td><td><a name="mast"></a><a href="#skip2content"><img src="/im/a.gif" width="10" height="1" border="0" alt=" " /></a></td></tr></table></td></tr></table><span class="sp5"> </span><br /><!-- END VNV1 MASTHEAD COMPONENT, thinner variation for content pages --> <!-- END MASTHEAD --><!-- BEGIN BREADCRUMB --><table border="0" cellpadding="0" cellspacing="0" width="100%" class="vatop"><tr><td> <div class="breadcrumb"><a href="http://developers.sun.com/index.html">Developers Home</a> > <a href="http://developers.sun.com/prodtech/index.html">Products & Technologies</a> > <a href="http://java.sun.com/index.jsp">Java Technology</a> > <a href="http://java.sun.com/reference/index.html">Reference</a> ></div></td><td align="right" nowrap="nowrap"><div class="breadcrumb"><b><a href="http://developers.sun.com/dispatcher.jsp?uid=6910021">Join a Sun Developer Network Community</a></b><br /><a href="http://developers.sun.com/user_registration/index.html">Profile and Registration</a> | <a href="http://developers.sun.com/user_registration/whyregister.html">Why Register?</a></div></td></tr><tr><td colspan="2"><img src="/im/a.gif" width="770" height="1" border="0" alt=" " /></td></tr></table><span class="sp5"> </span><br /> <!-- END BREADCRUMB --><!-- BEGIN PAGETITLE --><div class="pagetitle2">Reference</div><div class="pagetitle">J2SE Documentation</div><!-- END PAGETITLE --><!-- BEGIN WRAPPER TABLE, 2 COLUMN, LEFT/MAIN --><table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td valign="top"><!-- BEGIN LEFT COLUMN COMPONENTS --><!-- LeftNav DCR reference: /templatedata/dev_navigation/left_nav/data/jsc --><!-- BEGIN VNV4 LEFTNAV COMPONENT --><!-- BEGIN FIRST NAV GREYLINE, with no top padding --><div class="pad3x0" style="padding-top:0px;"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="2" border="0" alt=" " /></td></tr></table></div><!-- END FIRST NAV GREYLINE --><div class="leftnav1"> <a href="http://java.sun.com/downloads/index.html">Downloads</a> </div> <table border="0" cellpadding="0" cellspacing="0" class="vatop"><tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/downloads/ea/index.html">Early Access</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/downloads/tools/index.html">Tools</a></td></tr> </table> <span class="sp5"> </span><br /><div class="pad3x0"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="2" border="0" alt=" " /></td></tr></table></div><div class="leftnav1"> <a href="http://java.sun.com/reference/index.html">Reference</a> </div> <table border="0" cellpadding="0" cellspacing="0" class="vatop"><tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/api/index.html">API Specifications</a></td></tr> <tr><td width="15" class="hyphen"><img src="/im/a.gif" width="8" height="4" border="0" alt=" " /><br /><img src="/im/spacer_grey_2.gif" width="8" height="8" border="0" alt=" " hspace="3" /></td><td><b class="dkgrey">Documentation</b></td></tr><tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/faqs/index.html">FAQs</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/blueprints/index.html">BluePrints</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/whitepapers/index.html">White Papers</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/casestudies/index.html">Case Studies</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/glossary/index.html">Glossary</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/codesamples/index.html">Code Samples & Apps</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/reference/webcastaudiocast/index.html">Presentations & Audiocasts</a></td></tr> </table> <span class="sp5"> </span><br /><div class="pad3x0"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="2" border="0" alt=" " /></td></tr></table></div><div class="leftnav1"> <a href="http://java.sun.com/community/index.html">Community</a> </div> <table border="0" cellpadding="0" cellspacing="0" class="vatop"><tr><td width="15" class="hyphen">- </td><td><a href="http://forum.java.sun.com">Forums</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://developer.java.sun.com/developer/bugParade/index.jshtml">Bug Database</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/developer/community/chat/">Chats</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/community/usergroups/index.html">User Groups</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/community/newsletters/index.html">Newsletters</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/community/books/index.html">Books & Authors</a></td></tr> </table> <span class="sp5"> </span><br /><div class="pad3x0"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="2" border="0" alt=" " /></td></tr></table></div><div class="leftnav1"> <a href="http://java.sun.com/news/index.html">News & Updates</a> </div> <span class="sp5"> </span><br /><div class="pad3x0"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="2" border="0" alt=" " /></td></tr></table></div><div class="leftnav1"> <a href="http://java.sun.com/learning/index.html">Learning</a> </div> <table border="0" cellpadding="0" cellspacing="0" class="vatop"><tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/learning/new2java/index.html">New to Java Center</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/learning/tutorial/index.html">Tutorials & Code Camps</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/learning/online/index.html">Online Sessions & Courses</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/learning/coursecert/index.html">Course Certification</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/learning/instructorled/index.html">Instructor-Led Courses</a></td></tr> <tr><td width="15" class="hyphen">- </td><td><a href="http://java.sun.com/learning/quizzes/index.html">Quizzes</a></td></tr> </table> <span class="sp5"> </span><br /><div class="pad3x0"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="2" border="0" alt=" " /></td></tr></table></div> <span class="sp10"> </span><br /><!-- END VNV4 LEFTNAV COMPONENT --><!-- END LEFT COLUMN COMPONENTS --></td><td width="100%" valign="top"><!-- BEGIN CENTER COLUMN COMPONENTS --><!--startindex--><!-- ============ --><!-- MAIN CONTENT --><!-- ============ --><a name="skip2content"></a><!-- BEGIN VCD4 BYLINE AND TOOLS --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td class="smaller" valign="top"><em></em></td><td width="10"> </td><td align="right" valign="bottom"><div class="sitelinks" style="padding:0px;"><table border="0" cellpadding="0" cellspacing="0"><tr><td valign="bottom" align="right"><img src="/im/ic_print.gif" width="14" height="12" hspace="4" border="0" alt=" " /></td><td valign="bottom" class="smaller" nowrap="nowrap"><a href="/jsp_utils/PrintPage.jsp" target="popup_name" onclick="openPopup('','popup_name',655,500,'no',1,0,1,0,0,0); return true;">Printable Page</a></td></tr></table></div></td></tr></table><div class="contentdivider"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tr><td><img src="/im/a.gif" width="1" height="4" border="0" alt=" " /></td></tr></table></div><!-- END VCD4 BYLINE AND TOOLS --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">This page contains links to documentation for the Java 2 Platform, Standard Edition and its predecessor JDK versions. Documentation for other Java APIs and products can be found at <a href="/infodocs/index.html">all Java documentation</a>. Our policy for redistributing documentation is at <a href="/docs/redist.html">Documentation Redistribution Policy</a>.</td><!-- The Download J2SE Documentation Button --><td align="left" rowspan="2" width="1%" valign="top"><a href="/j2se/1.4.2/download.html#docs"><img src="/j2se/1.4.2/images/download-1.4.2-docs.gif" width="140" height="56"></a></td></tr><tr><td valign="top"><p style="margin-top: 1em; margin-bottom: 0em;"><b>Search Tools for J2SE and Tutorial Documentation</b></p> - <a href="/docs/search.html">Sun online search engine</a><br> - Third party online search engines: <a href="/docs/searchabledocs.html">DocFather</a>, <a href="http://www.navigationzone.net">NavigationZone</a><br> - Third party view and search tools:<a href="http://pivotonic.com/">JavaAPIHelper</a>,<a href="http://www.geocities.com/arjun_mukherjee/">JHelpViewer</a><br> - <a href="/docs/windows_format.html">HTMLHelp and WinHelp Formats</a>.</td><!--<td align="left" width="200" valign="top"> </td>--></tr><tr><td valign="top"><p style="margin-top: 1em; margin-bottom: 0em;"><b>The Java Tutorial</b><br> - <a href="/docs/books/tutorial/index.html">The Java Tutorial</a> is a practical guide for programmers. Want to use a project Swing table component? Write a servlet? Understand inner classes? Get clear, how-to information about the Java platform, with hundreds of example programs.</p></td><td align="left" width="200" valign="top"><p style="margin-top: 1em; margin-bottom: 0em;"><font size="-1">(<a href="/docs/books/tutorial/information/download.html">Download</a>)</font></p></td></tr><tr><td valign="top"><p style="margin-top: 1em; margin-bottom: 0em;"><b>Books on Java Technology</b><br> - <a href="/docs/books/index.html">Sun's Java Series books</a> are written by members of the Java Software Engineering team. Some books can also be accessed online.</p></td><td align="left" width="200" valign="top"> </td></tr><!--============--><!-- CREATE new table row for content with seperate version number downloads --><tr><td colspan="2"><p style="margin-top: 1em; margin-bottom: 0em;"><b>Java 2 SDK, Standard Edition, Documentation</b></p>For earlier versions, see <a href="/products/archive/">archive area</a></td></tr><tr><td valign="top" colspan="2"><!-- TABLE INSIDE 1.4 CELL --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr bgcolor="#eeeeee"><td> <b>English Docs</b></td><td width="110"><font size="-1"><b>SDK Docs</b></td><td width="200"><font size="-1"><b>J2SE API Docs</b></td><td width="140"><font size="-1"></td></tr><tr><td> - <b>1.5.0</b></td><td><font size="-1"><a href="/j2se/1.5.0/docs/index.html">View English</a></td><td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -