java ¶à̬(2)
(±¾ÎÄתÔØ)
ÔÎÄ£ºhttp://blog.csdn.net/thinkghoster/archive/2008/04/19/2307001.aspx
class
A
...
{
public
String show(D obj)
...
{
return
(
"
A and D
"
);
}
public
String show(A obj)
...
{
return
(
"
A and A
"
);
}
}
class
B
extends
A
...
{
public
String show(B obj)
...
{
return
(
"
B and B
"
);
}
public
String show(A obj)
...
{
return
(
"
B and A
"
);
}
}
class
C
extends
B
...
{}
class
D
extends
B
...
{}
A a1
=
new
A();
A a2
=
new
B();
B b =
new
B();
C c
=
new
C();
D d
=
new
D();
&nbs
Ïà¹ØÎĵµ£º
Ò»¸öÓÅÐãµÄJava³ÌÐòÔ±±ØÐëÁ˽âGCµÄ¹¤×÷ÔÀí¡¢ÈçºÎÓÅ»¯GCµÄÐÔÄÜ¡¢ÈçºÎÓëGC½øÐÐÓÐÏ޵Ľ»»¥£¬ÒòΪÓÐһЩӦÓóÌÐò¶ÔÐÔÄÜÒªÇó½Ï¸ß£¬ÀýÈçǶÈëʽϵͳ¡¢ÊµÊ±ÏµÍ³µÈ£¬Ö»ÓÐÈ«ÃæÌáÉýÄÚ´æµÄ¹ÜÀíЧÂÊ £¬²ÅÄÜÌá¸ßÕû¸öÓ¦ÓóÌÐòµÄÐÔÄÜ¡£±¾ÆªÎÄÕÂÊ×Ïȼòµ¥½éÉÜGCµÄ¹¤×÷ÔÀíÖ®ºó£¬È»ºóÔÙ¶ÔGCµÄ¼¸¸ö¹Ø¼üÎÊÌâ½øÐÐÉîÈë̽ÌÖ£¬×îºóÌá³öһЩJava³ÌÐòÉ ......
Java iText ¶¯Ì¬ Éú³É PDF Îĵµ ±í¸ñ ÖÐÎÄÎÊÌâ
iTextÊÇÒ»¸ö¿ª·¢Ô´´úÂëµÄÏîÄ¿£¬Äã¿ÉÒÔʹÓÃiText·½±ãµÄʵÏÖPDFµÄÊä³ö¡£
Ò»¡¢iTextµÄÏÂÔØ£º
Äã¿ÉÒÔÔÚ http://www.lowagie.com/iText/ ²é¿´¹ØÓÚiTextµÄÏà¹ØÐÅÏ¢£¬°üÀ¨Ô´´úÂ룬Îĵµ..
1. itext-src-1.4 ......
Ê×ÏÈÎÒÃÇÓ¦¸Ã¶Ô JDK,JRE,JVM ÓÐËùÈÏÖª£¬ÏÂÃæÕâ¸öͼ¾Í¿ÉÒÔÇåÎúµÄ±íÊöËûÃǵĹØϵ£º JDK,JRE,JVM µÄ¹Øϵ Ò»¸ö¸ü¸´ÔÓµÄͼ£ºÕâÊÇ J2SE 1.5 ¾ßÌ幦ÄÜͼ±í£¬ÔÚͼµÄ×ó±ß£¬ÎÒÃÇ¿ÉÒÔÇåÎúµÄ¿´³öÄÄЩÊÇJVMµÄ·¶³ë£¬ÄÄЩÊÇJREµÄ·¶³ë£¬ÄÄЩÊÇJDKµÄ·¶³ë¡£ Java³ÌÐòµÄÖ´ÐÐÂß¼ ÏÂÃæͼÑÝʾµÄÊÇÈçºÎ´òÔìÒ»¸ö¸öÐÔ»¯µÄJavaÆô¶¯Æ÷ ......
´ó¶àÊýÈËÈÏΪ£¬½Ó¿ÚµÄÒâÒåÔÚÓÚ¶¥Ìæ¶àÖؼ̳С£ÖÚËùÖÜÖªJavaûÓÐc++ÄÇÑù¶àÖؼ̳еĻúÖÆ£¬µ«ÊÇÈ´Äܹ»Êµ×÷¶à¸ö½Ó¿Ú¡£ÆäʵÕâÑù×öÊǺÜǣǿµÄ£¬½Ó¿ÚºÍ¼Ì³ÐÊÇÍêÈ«²»Í¬µÄ¶«Î÷£¬½Ó¿ÚûÓÐÄÜÁ¦´úÌæ¶àÖؼ̳У¬Ò²Ã»ÓÐÕâ¸öÒåÎñ¡£½Ó¿ÚµÄ×÷Óã¬Ò»ÑÔÒÔ±ÎÖ®£¬¾ÍÊDZêÖ¾ÀàµÄÀà±ð£¨type of class£©¡£°Ñ²»Í¬ÀàÐ͵ÄÀà¹éÓÚ²»Í¬µÄ½Ó¿Ú£¬¿ÉÒÔ¸üºÃµÄ¹ÜÀí ......