javaÀ¬»ø»ØÊÕµÄÁ½¸öÌõ¼þ
Ò»¡¢JAVAÀ¬»ø»ØÊÕ»úÖƸÅÊö
ÔÚVB¡¢C++µÈijЩ³ÌÐòÉè¼ÆÓïÑÔÖУ¬ÎÞÂÛÊǶÔÏó»¹ÊǶ¯Ì¬ÅäÖõÄ×ÊÔ´»òÄڴ棬¶¼±ØÐëÓɳÌÐòÔ±×ÔÐÐÉùÃ÷²úÉúºÍ»ØÊÕ£¬·ñÔòÆäÖеÄ×ÊÔ´½«²»¶ÏÏûºÄ£¬Ôì³É×ÊÔ´µÄÀË·ÑÉõÖÁËÀ»ú¡£ÓÉÓÚÒªÔ¤ÏÈÈ·¶¨Õ¼ÓõÄÄÚ´æ¿Õ¼äÊÇ·ñÓ¦¸Ã±»»ØÊÕÊǷdz£À§Äѵģ¬Õâ¾Íµ¼ÖÂÊÖ¹¤»ØÊÕÄÚ´æÍùÍùÊÇÒ»ÏÔÓ¶ø¼è¾ÞµÄ¹¤×÷¡£Òò´Ë£¬µ±Ê¹ÓÃÕâЩ³ÌÐòÉè¼ÆÓïÑÔ±à³Ìʱ£¬³ÌÐòÔ±²»½öÒª¿¼ÂÇÈçºÎʵÏÖËã·¨ÒÔÂú×ãÓ¦Ó㬻¹Òª»¨·ÑÐí¶à¾«Á¦¿¼ÂǺÏÀíʹÓÃÄÚ´æ±ÜÃâϵͳ±ÀÀ£¡£
Õë¶ÔÕâÖÖÇé¿ö£¬JAVAÓïÑÔ½¨Á¢ÁËÀ¬»ø»ØÊÕ»úÖÆ¡£JAVAÊÇ´¿´âµÄÃæÏò¶ÔÏóµÄ±à³ÌÓïÑÔ£¬Æä³ÌÐòÒÔÀàΪµ¥Î»£¬³ÌÐòÔËÐÐÆÚ¼ä»áÔÚÄÚ´æÖд´½¨ºÜ¶àÀàµÄ¶ÔÏó¡£ÕâЩ¶ÔÏóÔÚÍê³ÉÈÎÎñÖ®ºó£¬JAVAµÄÀ¬»ø»ØÊÕ»úÖÆ»á×Ô¶¯ÊÍ·ÅÕâЩ¶ÔÏóËùÕ¼ÓõĿռ䣬ʹ»ØÊÕµÄÄÚ´æÄܱ»ÔÙ´ÎÀûÓã¬Ìá¸ß³ÌÐòµÄÔËÐÐЧÂÊ¡£À¬»ø»ØÊÕ²»½ö¿ÉÒÔÌá¸ßϵͳµÄ¿É¿¿ÐÔ¡¢Ê¹ÄÚ´æ¹ÜÀíÓëÀà½Ó¿ÚÉè¼Æ·ÖÀ룬»¹¿ÉÒÔʹ¿ª·¢Õß¼õÉÙÁ˸ú×ÙÄÚ´æ¹ÜÀí´íÎóµÄʱ¼ä£¬´Ó¶ø°Ñ³ÌÐòÔ±´ÓÊÖ¹¤»ØÊÕÄÚ´æ¿Õ¼äµÄ·±Öع¤×÷ÖнâÍѳöÀ´¡£
JAVAÀ¬»ø»ØÊÕ»úÖÆÁíÒ»¸öÌصãÊÇ£¬½øÐÐÀ¬»ø»ØÊÕµÄÏß³ÌÊÇÒ»ÖÖµÍÓÅÏȼ¶µÄỊ̈߳¬ÔÚÒ»¸öJava³ÌÐòµÄÉúÃüÖÜÆÚÖУ¬ËüÖ»ÓÐÔÚÄÚ´æ¿ÕÏеÄʱºò²ÅÓлú»áÔËÐС£
ÏÂÃæ±¾ÎÄ´Ó“¶ÔÏóµÄʧȥÒýÓԺ͓¶ÔÏóÀ뿪×÷ÓÃÓò”ÕâÁ½¸ö·½Ãæ½øÐзÖÎö£¬Ì½ÌÖJAVA³ÌÐòÖеĶÔÏóʲôʱºò¿ÉÒÔ±»µ±×÷À¬»øÀ´½øÐлØÊÕ¡£
¶þ¡¢¶ÔÏóµÄʧȥÒýÓÃ
ͨ¹ýÏÂÃæµÄÒ»¶ÎJAVA³ÌÐò£¨Àý1£©£¬ÎÒÃÇ¿ÉÒÔÌÖÂÛ³ÌÐòÖеĶÔÏóÊÇ·ñÒѾ·ûºÏÀ¬»ø»ØÊÕµÄÌõ¼þ¡£Çë×¢Ò⣬ÎÒÃÇÖ»ÊÇÌÖÂÛij¸ö¶ÔÏóÊÇ·ñ·ûºÏ±»»ØÊÕµÄÌõ¼þ£¬Õâ²¢²»ÒâζןöÔÏ󽫱»Á¢¼´»ØÊÕ£¬¹ØÓÚÕâÒ»µã£¬±¾ÎĺóÃ滹½«½øÒ»²½ËµÃ÷¡£
Àý1£º
1. class Computer{ }
2. public class GarbageCollector {
3. Computer makeComputer() {
4. Computer tempComputer = new Computer ();
5. return tempComputer;
6. }
7. public static void main (String args[]) {
8. GarbageCollector t = new GarbageCollector ();
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
Ò»£º×¼±¸ www.savarese.org download
1. rocksaw-1.0.0-src.tar.gz
2. vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
1. build vserv-tcpip-0.9.2-src
ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......
package Demo;
// Java·ºÐÍÎÞ·¨ÏòÉÏתÐÍ
class Info23<T> {
private T var; // ¶¨Òå·ºÐͱäÁ¿
public void setVar(T var) {
this.var = var;
}
public T getVar() {
return this.var;
}
public String toString() { // Ö±½Ó´òÓ¡
return this.var.toString();
}
}
public class GenericsDem ......
ÀàÐÍת»» Îı¾¿òStringתΪdouble Double·â×°Àà
Òì³£´¦Àí
ÏÔʾ¸ñʽ
ÕûÊý½á¹ûĩβȥ.0
Ê×λ²»ÄÜΪ0
+/- ÎÊÌâ Êý´óÓÐbug
Á¬¼ÓÁ¬¼õÎÊÌâ
»ØÍË
³ý0±¨´í
²»ÄܳöÏÖ¶à¸öµã °´ÁËÒ»¸öµãÔÙ°´Ã»ÓÐ
×Ö·û´®ÊDz ......
ÒòΪ¾³£°áÀ´°áÈ¥£¬×Ô¼ºÊÕ¼¯µÄºÃµÄ¶«¶«Ò²¾³£¸ú×ÅÎҰᣬ¾³£ÕÒ²»µ½¡£½ñÌìÕûÀíÁËÕûÀí£¬ÒÔºó°Ñ×Ô¼ºÊÕ¼¯µÄһЩС¶«Î÷ÉÏ´«µ½CSDNµÄÏÂÔØƵµÀ“ÎÒµÄ×ÊÔ´”ÀïÈ¥£¨http://xlw2003.download.csdn.net/£©¡£ÒÔºó×Ô¼ºÏëÓÃÁË£¬Ò²ÖªµÀÉÏÄĶùÕÒÈ¥¡£Í¬Ê±ÄØ£¬ÆäËûÅóÓÑÒ²¿ÉÒÔÏÂÔØÀ´Óᣠ......