﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-VIRGIN FOREST OF JAVA-文章分类-Reflection</title><link>http://www.blogjava.net/RR00/category/2969.html</link><description>不要埋头苦干，要学习，学习，再学习。。。。。
&lt;br&gt;
powered  by &lt;font color='orange'&gt;R.Zeus&lt;/font&gt;</description><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 22:51:42 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 22:51:42 GMT</pubDate><ttl>60</ttl><item><title>Using the java.lang.reflect.Modifier Class</title><link>http://www.blogjava.net/RR00/articles/69394.html</link><dc:creator>R.Zeus</dc:creator><author>R.Zeus</author><pubDate>Wed, 13 Sep 2006 08:10:00 GMT</pubDate><guid>http://www.blogjava.net/RR00/articles/69394.html</guid><wfw:comment>http://www.blogjava.net/RR00/comments/69394.html</wfw:comment><comments>http://www.blogjava.net/RR00/articles/69394.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/RR00/comments/commentRss/69394.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/RR00/services/trackbacks/69394.html</trackback:ping><description><![CDATA[
		<div class="" style="MARGIN-TOP: 10px; FONT-WEIGHT: bold; FONT-SIZE: 18px; MARGIN-LEFT: 10px; COLOR: #ff6600; FONT-FAMILY: Arial, Helvetica, Sans-Serif">Using the java.lang.reflect.Modifier Class</div>
		<div class="" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">You know that you can extract constructors, methods, and variables from a Java class file. Generally, when you use <pre><code>
	Field fields[] = c.getDeclaredFields( );
</code></pre>where <span class="pf">c</span> is initialized using <pre><code>
	Class c = Class.forName(className);
</code></pre>and print the <span class="pf">fields</span> array, you get all the elements declared in the class. 
<p>However, suppose you want to restrict the output to all fields <i>other</i> than those declared as private. In this case, you would use the following code, where the <span class="pf">Modifier</span> class is a part of the <span class="pf">java.lang.reflect</span> package: </p><pre><code>
if(!Modifier.isPrivate(fields[i].getModifiers( )){
	System.out.println(fields[i]+"\n");
}
</code></pre>Using <span class="pf">Modifier.isPrivate()</span> ensures that the private variables are not printed. 
<p>The same can be used for methods as well. 
</p><p></p>author: MS Sridhar</div>
<img src ="http://www.blogjava.net/RR00/aggbug/69394.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/RR00/" target="_blank">R.Zeus</a> 2006-09-13 16:10 <a href="http://www.blogjava.net/RR00/articles/69394.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>receive type name from type value</title><link>http://www.blogjava.net/RR00/articles/69326.html</link><dc:creator>R.Zeus</dc:creator><author>R.Zeus</author><pubDate>Wed, 13 Sep 2006 03:01:00 GMT</pubDate><guid>http://www.blogjava.net/RR00/articles/69326.html</guid><wfw:comment>http://www.blogjava.net/RR00/comments/69326.html</wfw:comment><comments>http://www.blogjava.net/RR00/articles/69326.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/RR00/comments/commentRss/69326.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/RR00/services/trackbacks/69326.html</trackback:ping><description><![CDATA[
		<p>in hibernate , <font color="#ff0000">ASTPrinter</font> receive the <font color="#ff0000">HqlTokenTypes</font>  name by an int value.how did it do?<br />first ,useing <font color="#ff0000">Class.getFields</font> to get all the fields,the use <font color="#ff0000">filed.get(null)</font> to get the field's value that equals the int type will be returned.<br />so ,<font color="#ff0000">field.get(null)</font> can return the field's value.if the parameter nonequals null,what it will return?<br />in addition,when use field.get(null),it use <font color="#ff0000">Modifier.isStatic( field.getModifiers() )</font> to check weather the filed is static.why it do this?if the field isn't static ,it will be what?<br />in my next test,<br />only <font color="#ff0000">public</font> field can recieved by <font color="#ff0000">Class.getFields,</font><font color="#000000">even the page-privilege can't.<br />and only the <font color="#ff0000">static</font> field can be return it's value when use </font><font color="#ff0000">filed.get(null)<font color="#000000">,else will be</font> error.</font></p>
<img src ="http://www.blogjava.net/RR00/aggbug/69326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/RR00/" target="_blank">R.Zeus</a> 2006-09-13 11:01 <a href="http://www.blogjava.net/RR00/articles/69326.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>example:DynTest.java</title><link>http://www.blogjava.net/RR00/articles/10831.html</link><dc:creator>R.Zeus</dc:creator><author>R.Zeus</author><pubDate>Tue, 23 Aug 2005 13:25:00 GMT</pubDate><guid>http://www.blogjava.net/RR00/articles/10831.html</guid><wfw:comment>http://www.blogjava.net/RR00/comments/10831.html</wfw:comment><comments>http://www.blogjava.net/RR00/articles/10831.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/RR00/comments/commentRss/10831.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/RR00/services/trackbacks/10831.html</trackback:ping><description><![CDATA[<P>&nbsp;</P>
<P>import java.lang.reflect.*;<BR>import java.util.*;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>public class DynTest {<BR>&nbsp;&nbsp;&nbsp;&nbsp; public double d; // a field<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int add(int a, int b)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; System.out.println("add() invoked");&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return a + b;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public String tName(String s, Hashtable ht)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; System.out.println("tName() invoked");&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return s;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void main(String args[])<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;<FONT style="BACKGROUND-COLOR: #ffa500">&nbsp; &nbsp;//代刚1. Method.invoke()<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class c = Class.forName("DynTest");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Class pTypes[] = new Class[2];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTypes[0] = Integer.TYPE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTypes[1] = Integer.TYPE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Method m = c.getMethod("add", pTypes);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DynTest obj = new DynTest();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object arg[] = new Object[2];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arg[0] = new Integer(37);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arg[1] = new Integer(47);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object r = m.invoke(obj, arg);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Integer rVal = (Integer)r;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("return: "+rVal.intValue());&nbsp; //84<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (Throwable e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.err.println(e);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT style="BACKGROUND-COLOR: #ffa500">&nbsp;&nbsp; //代刚2. Method.invoke() <BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Class c = Class.forName("DynTest");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Class pTypes[] = new Class[2];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTypes[0] = Class.forName("java.lang.String");&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTypes[1] = Class.forName("java.util.Hashtable");&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Method m = c.getMethod("tName", pTypes);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object arg[] = new Object[2];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arg[0] = new String("return: "+"Hello,World!");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arg[1] = null;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//ERROR: non-static variable this cannot be referenced from a static context<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DynTest obj = new DynTest();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object r = m.invoke(obj, arg);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String rVal = (String)r;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(rVal);&nbsp;//Hello,World!<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (Throwable e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.err.println(e);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT style="BACKGROUND-COLOR: #ffa500">&nbsp; //代刚3. Field.setDouble()<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Class c = Class.forName("DynTest");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Field f = c.getField("d");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DynTest obj = new DynTest();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("before setting, d= " + obj.d); //0.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f.setDouble(obj, 12.34);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("after setting, d= " + obj.d);&nbsp; //12.34<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (Throwable e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.err.println(e);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } //main<BR>}<BR></P><img src ="http://www.blogjava.net/RR00/aggbug/10831.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/RR00/" target="_blank">R.Zeus</a> 2005-08-23 21:25 <a href="http://www.blogjava.net/RR00/articles/10831.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>“Class” object的取得途径</title><link>http://www.blogjava.net/RR00/articles/10830.html</link><dc:creator>R.Zeus</dc:creator><author>R.Zeus</author><pubDate>Tue, 23 Aug 2005 13:21:00 GMT</pubDate><guid>http://www.blogjava.net/RR00/articles/10830.html</guid><wfw:comment>http://www.blogjava.net/RR00/comments/10830.html</wfw:comment><comments>http://www.blogjava.net/RR00/articles/10830.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/RR00/comments/commentRss/10830.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/RR00/services/trackbacks/10830.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Java</SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">允许我们从多种管道为一个</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">class</SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">生成对应的</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: LucidaConsole; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class </SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">object</SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">。</SPAN><SPAN style="COLOR: blue; FONT-FAMILY: 宋体; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">图</SPAN><SPAN lang=EN style="COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">2</SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">是一份整理。</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P>
<TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 140.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=187>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class object </SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">诞生管道</SPAN><SPAN lang=EN style="FONT-SIZE: 9.5pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH"><o:p></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 285.7pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" vAlign=top width=381>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">示例</SPAN><SPAN lang=EN style="FONT-SIZE: 9.5pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: MingLiU; mso-font-kerning: 0pt; mso-bidi-language: TH"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 140.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=187>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">运用</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">getClass()<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">注：每个</SPAN><SPAN lang=EN style="COLOR: gray; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">class </SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">都有此函数</SPAN><SPAN lang=EN style="COLOR: gray; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 285.7pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=381>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">String str = "abc";<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c1 = str.getClass();<o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 2">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 140.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=187>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">运用</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class.getSuperclass()</SPAN><SUP><SPAN lang=EN style="COLOR: blue; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">2</SPAN></SUP><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 285.7pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=381>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Button b = new Button();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c1 = b.getClass();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c2 = c1.getSuperclass();<o:p></o:p></SPAN></P></TD></TR>
<TR style="HEIGHT: 5.15pt; mso-yfti-irow: 3">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 140.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 5.15pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=187>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">运用</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">static method<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class.forName()<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">（最常被使用）</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 285.7pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 5.15pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=381>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c1 = Class.forName ("java.lang.String");<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c2 = Class.forName ("java.awt.Button");<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c3 = Class.forName ("java.util.LinkedList$Entry");<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c4 = Class.forName ("I");<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c5 = Class.forName ("[I");<o:p></o:p></SPAN></P></TD></TR>
<TR style="HEIGHT: 5.15pt; mso-yfti-irow: 4">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 140.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 5.15pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=187>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">运用</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">.class </SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">语法</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 285.7pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 5.15pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=381>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c1 = String.class;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c2 = java.awt.Button.class;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c3 = Main.InnerClass.class;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c4 = int.class;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c5 = int[].class;<o:p></o:p></SPAN></P></TD></TR>
<TR style="HEIGHT: 5.15pt; mso-yfti-irow: 5; mso-yfti-lastrow: yes">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 140.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 5.15pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=187>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">运用</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">primitive wrapper classes<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">的</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">TYPE </SPAN><SPAN style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-ascii-font-family: 'Courier New'; mso-bidi-font-size: 10.5pt">语法</SPAN><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt"><o:p>&nbsp;</o:p></SPAN></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 285.7pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 5.15pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=381>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c1 = Boolean.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c2 = Byte.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c3 = Character.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c4 = Short.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c5 = Integer.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c6 = Long.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c7 = Float.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c8 = Double.TYPE;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN style="COLOR: black; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: TimesNewRomanPSMT; mso-font-kerning: 0pt; mso-bidi-language: TH; mso-bidi-font-size: 10.5pt">Class c9 = Void.TYPE;<o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE></P><img src ="http://www.blogjava.net/RR00/aggbug/10830.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/RR00/" target="_blank">R.Zeus</a> 2005-08-23 21:21 <a href="http://www.blogjava.net/RR00/articles/10830.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>