Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚJavaµÄ¼¸¸öÎÊÌâ

×î½üÃæÊÔÁ˺ܶ๫˾£¬Ò»Ð©±ÊÊÔºÍÃæÊÔµÄÎÊÌâÈÃÎÒÉîÓид¥¡£ËäȻ˵×Ô¼º¶ÔJavaÒѾ­ºÜÊìϤÁË£¬²»¹ýµ±Ãæ¶ÔһЩϸ½ÚµÄʱºò£¬×Ô¼ºÈ·ÊµÓеãÎÞ´ÓÏÂÊÖ¡£ÏÂÃæ¼òµ¥µÄÁоټ¸¸öÀý×Ó£º
1.JavaÖжѺÍÕ»µÄÇø±ð
        Æäʵ£¬Õâ¸öÎÊÌâ²¢²»ÊǺÜÄÑ¡£²»¹ýÒ²ÐíºÜ¶à³ÌÐòÔ±ÍùÍùºöÂÔÁËÕâÒ»µã£¬ÓÈÆäÊÇÔÚÀ¬»ø»ØÊÕµÄʱºò¡£´ó¼Ò¿ÉÄÜÏ°¹ßÁËJavaµÄGC»úÖÆ£¬ÆäʵÈç¹ûÄÜ×ÐϸÀí½âGC£¬ÎÒÃÇÍêÈ«¿ÉÒÔÌá¸ßÖ´ÐгÌÐòµÄЧÂÊ¡£ÄÇô¶ÑºÍÕ»¾ÍÊÇ×î»ù±¾µÄ¶«Î÷¡£
        ¶ÑºÍÕ»¶¼ÊÇJavaÓÃÀ´ÔÚÄÚ´æ´æ·ÅÊý¾ÝµÄµØ·½¡£
        ¼òµ¥µÄÀ´Ëµ£¬ÓÃnew´´½¨µÄ¶ÔÏ󣬼´ÔËÐÐʱ¶¯Ì¬µÄ·ÖÅäÄڴ棬´æÔÚ¶ÑÖС£¶ÑÊÇÓÉÀ¬»ø»ØÊÕÀ´¸ºÔðµÄ£¬¶ÑµÄÓÅÊÆÊÇ¿ÉÒÔ¶¯Ì¬µØ·ÖÅäÄÚ´æ´óС£¬JavaµÄÀ¬»øÊÕ¼¯Æ÷»á×Ô¶¯ÊÕ×ßÕâЩ²»ÔÙʹÓõÄÊý¾Ý¡£
ΪÁËÌá¸ß³ÌÐòµÄЧÂÊ£¬µ±ÎÒÃDz»ÐèҪʹÓÃÕâ¸ö¶ÔÏóʱ£¬Ö»Òª¼òµ¥Í£Ö¹¶ÔËüµÄÒýÓü´¿É£¬¼´°ÑÕâ¸ö¶ÔÏó¸³ÖµÎªNULL£¬¶ø²»ÊǵÈÀ¬»ø»ØÊÕÕ¾ÂýÂýµÄ»ØÊÕ¡£
        ¶øJavaµÄһЩ»ù±¾Êý¾ÝÀàÐͺÍÒýÓÃÒ»°ã´æÔÚÕ»ÖС£Õ»µÄ´æÈ¡ËٶȺܿì¶øÇÒÕ»ÖеÄÊý¾Ý¿ÉÒÔ¹²Ïí¡£
2.JavaÖÐsleepºÍwaitµÄÇø±ð
Èç¹ûÄãûÓÐÓùýÏ̻߳òºÜÉÙÓõ½Ị̈߳¬Õâ¸öÎÊÌ⻹ÕæµÄ²»ºÃ»Ø´ð£¬¶øÇÒºÜÈÝÒ×»ìÏý¡£
        Ê×ÏÈ£¬¶þÕ߶¼ÊÇʹÏß³ÌÔÝʱִֹͣÐеķ½·¨¡£µ«ÊǶþÕßÈ´ÓֺܴóµÄ²»Í¬¡£
        ×î»ù´¡µÄÒ»µã¾ÍÊÇsleepÊÇThreadÖеķ½·¨£¬¶øwaitÊÇObjectÖеķ½·¨¡£
sleepÊÇʹµ±Ç°Ïß³ÌÔÝʱ˯Ãߣ¬¿ÉÒÔ·ÅÔÚÈκÎλÖ᣶øwaitÊÇʹµ±Ç°Ïß³ÌÔÝʱ·ÅÆú¶ÔÏóµÄʹÓÃȨ½øÐеȴý£¬±ØÐë·ÅÔÚͬ²½·½·¨»òͬ²½¿éÀï¡£sleepʹÓõÄʱºò£¬Ï̲߳¢²»»á·ÅÆú¶ÔÏóµÄʹÓÃȨ£¬¼´²»»áÊͷŶÔÏóËø£¬ËùÒÔÔÚͬ²½·½·¨»òͬ²½¿éÖÐʹÓÃsleep£¬Ò»¸öÏ̷߳ÃÎÊʱ£¬ÆäËûµÄÏß³ÌÒ²ÊÇÎÞ·¨·ÃÎʵġ£¶øwaitÊÇ»áÊͷŶÔÏóËøµÄ£¬¾ÍÊǵ±Ç°Ï̷߳ÅÆú¶ÔÏóµÄʹÓÃȨ£¬ÈÃÆäËûµÄÏ߳̿ÉÒÔ·ÃÎÊ¡£Ïß³ÌÖ´ÐÐwait·½·¨Ê±£¬ÐèÒªÁíÒ»¸öÏ̵߳÷Óà notify½øÐл½ÐÑ¡£¶øsleepÖ»ÊÇÔÝʱÐÝÃßÒ»¶¨Ê±¼ä£¬Ê±¼äµ½ÁËÖ®ºó£¬×Ô¶¯»Ö¸´ÔËÐУ¬²»ÐèÁíÍâµÄÏ̻߳½ÐÑ¡£
        ¼òµ¥µÄÀ´Ëµ£¬sleepÖ»ÊÇÔÝʱÐÝÃ߶øÒÑ¡£¶øwaitÔòͨ³£ÓÃÓëÏß³Ìͬ²½£¬¾­³£ÓënotifyºÍnotifyAllʹÓá£
3.ÄãÌý¹ýµÄJavaµÄÉè¼ÆÄ£Ê


Ïà¹ØÎĵµ£º

JavaÓëC++µÄ¶à̬

ûÓбØÒªÓÃÒ»¶ÑÈÆ¿ÚµÄÐÎÈÝ´ÊÀ´ÃèÊöʲô½Ð¶à̬£¬Ö»¾Ù³ö¼¸¸ö¹Ø¼üµã¡£
    É裺gunΪ¸¸À࣬shootgunºÍpistolΪgunµÄ×ÓÀà¡£
    Java:
    class gun {
        void shoot() {
          ......

Google App engine for Java¿ª·¢µÄÒ»¸ö²©¿ÍÍøÕ¾

»¥ÁªÍø³åÀ˰壬ÊÇGoogle app Engine ÔƼÆËãƽ̨ÉϵÄÒ»¸ö²©¿Í£¬ÊÇ»ùÓÚGoogle App engine for Java¿ª·¢µÄ¡£
ԭʼµÄÒâͼÊÇÒòΪٶù»¹Ð¡£¬ÏÖÔÚ»¹²»»áÔĶÁ£¬¶øÎÒÔÚÉÏÍøʱ¾­³£¿´µ½Ò»Ð©ÓÐÒæÓÐȤÉõÖÁ¿ÉÒÔ°ïÖúѧϰµÄһЩÄÚÈÝ£¬¾ÍÏë°ÑËü¼ÇÏÂÀ´Ð´ÔÚ²©¿ÍÀ¹©Å®¶ù³¤´óÔÙÈ¥¿´¿´¡£
ÁíÍ⣬ÎÒ»¹Ã»Óз¢ÏÖGoogle App engine for Java¿ª·¢µÄ ......

JAVA Öн«×Ö·û´®×ª»»³ÉÀàʵÀý¶ÔÏó

ÔںܶàʱºòÎÒÃÇÐèÒª½«Ò»¸ö¸øÁËÍêÕû·¾¶µÄÀà¶ÔÏó×Ö·û´®×ª»»³ÉÒ»¸öÀàµÄʵÀý¶ÔÏ󣬾ͱÈÈç˵ÓÐÒÔÏÂÕâÑùµÄÒ»¸ö×Ö·û´®
String  menAction= "gef.putin.step.ui.SystemMenuTest(xiajiaji)"ÔÚ¸ÃÀàÖÐÐèÒªÓÐÓÐÒ»¸ö×Ö·û´®¸ñʽµÄ²ÎÊý£¬µ±È»¶à¸ö²ÎÊýÒ²¿ÉÒÔ£¬ÎÒÒѾ­½«¶à¸ö²ÎÊýµÄ¿¼ÂǽøÈ¥£¬¶Ô¸Ä×Ö·û´®½øÐнâÎö¾Í¿ÉÒÔת»»³ÉÀàµÄʵÀý¶Ô ......

Java data ×ܽá

1.¼ÆËãijһÔ·ݵÄ×î´óÌìÊý
Calendar time=Calendar.getInstance();
time.clear();
time.set(Calendar.YEAR,year); //year Ϊ int
time.set(Calendar.MONTH,i-1);//×¢Òâ,Calendar¶ÔÏóĬÈÏÒ»ÔÂΪ0
int day=time.getActualMaximum(Calendar.DAY_OF_MONTH);//±¾Ô·ݵÄÌìÊý
×¢£ºÔÚʹÓÃset·½·¨Ö®Ç°£¬±ØÐëÏÈ ......

JAVAÁ¬½Ósql server 2005 Êý¾Ý¿âÐĵÃ

Ê×ÏȵÃÏÂÔØÇý¶¯³ÌÐòµ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.2
½âѹMicrosoft SQL Server 2005 jdbc driver1.2.exe£¬°Ñsqljdbc_1.1¸´ÖƵ½%ProgramFiles%£¨Èç¹ûϵͳÔÚCÅÌÔòΪC:\Program Files£©¡£
ÉèÖÃ Classpath
JDBC Çý¶¯³ÌÐò²¢Î´°üº¬ÔÚ Java SDK ÖС£Òò´Ë£¬Èç¹ûҪʹÓøÃÇý¶¯³ÌÐò£¬±ØÐ뽫 classpath ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ