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

JavaÏ̵߳Äͬ²½

ÔÚJ2ME¿ª·¢ÖУ¬Ïß³ÌÊÇÒ»¸öÐèÒª·Ç³£ÖØÊÓµÄÎÊÌ⣬ÏÂÃæÊÇÒ»¶Î¹ØÓÚÏ̵߳ÄÎÄÕ¡£ÎÒÈÏΪ¶Ô´òºÃÏ̻߳ù±¾ºÜÓаïÖú¡£
 
zz
http://www.j2medev.com/Article/ShowArticle.asp?ArticleID=5478
 
Ò»¡¢Í¬²½ÎÊÌâÌá³ö
Ï̵߳Äͬ²½ÊÇΪÁË·ÀÖ¹¶à¸öÏ̷߳ÃÎÊÒ»¸öÊý¾Ý¶ÔÏóʱ£¬¶ÔÊý¾ÝÔì³ÉµÄÆÆ»µ¡£
ÀýÈ磺Á½¸öÏß³ÌThreadA¡¢ThreadB¶¼²Ù×÷ͬһ¸ö¶ÔÏóFoo¶ÔÏ󣬲¢ÐÞ¸ÄFoo¶ÔÏóÉϵÄÊý¾Ý¡£
public
class

Foo {
    private
int
x = 100;
    public
int

getX() {
        return
x;
    }
    public
int
fix(int
y)
{
        x = x - y;
        return

x;
    }
}
public
class

MyRunnable implements
Runnable {
   
private
Foo foo = new
Foo();
    public
static

void
main(String[] args) {
       
MyRunnable r = new
MyRunnable();
       
Thread ta = new
Thread(r, "Thread-A"
);
        Thread tb = new
Thread(r, "Thread-B"
);
        ta.start();
       
tb.start();
    }
    public

void
run() {
        for
(int
i =
0; i < 3; i++) {
            this
.fix(30);
            try
{
                Thread.sleep(1);
            } catch

(InterruptedException e) {
                e.printStackTrace();
    &nbs


Ïà¹ØÎĵµ£º

ÔÚjavaÖÐÓÃÊý¾Ý¿âÁ¬½Ó³ØÁ¬½ÓÊý¾Ý¿â

ºÃ¶à´óÐ͵ÄÆóÒµÏîÄ¿¶¼ÒªÓõ½¸ß¼¶JDBCÁ¬½ÓÊý¾Ý¿âÅäÖø߼¶JDBCʵÀýÈçÏ£º
µÚÒ»£ºÅäÖÃTomcatϵÄconfÎļþ¼ÐϵÄcontext.xmlÎļþ
<?xml version='1.0' encoding='utf-8'?>
<Context>
 <Resource name="jdbc/Ãû³Æ" auth="Container" type="javax.sql.DataSource"
  maxActive="10" maxIdle=" ......

launch4j Óë inno setup ´ò°üjava×ÀÃæÓ¦ÓóÌÐò

      ×î½üÔÚ×öÒ»¸ö¶Ôjava×ÀÃæÓ¦ÓóÌÐòÏîÄ¿£¬ÐèÒª´ò°ü³ÉͬÆÕͨµÄ¶þ½øÖÆÓ¦ÓóÌÐòÒ»Ñù¡£
      [1]ʹÓÃeclipse ½«Õû¸öÏîÄ¿´ò°ü³É¿ÉÔËÐеÄjarÎļþ£¬ÔÚÓ¦Óùý³ÌÖз¢ÏÖ×ÊÔ´ÎļþÈç¹û²»ÊÇͨ¹ýinputstreamÀ´¶ÁÈ¡µÄ»°£¬ÊÇÎÞ·¨·ÃÎʵ½µÄ£¬ÔÚ×öÏîĿʱûÓп¼Âǵ½Õâµã£¬ËùÒÔ×îºóÖ»ºÃ° ......

java µÄ×Ô´ø¼¸ÖÖƤ·ôµÄÀàÃû

javax.swing.plaf.metal.MetalLookAndFeel
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
com.sun.java.swing.plaf.motif.MotifLookAndFeel
com.sun.java.swing.plaf.mac.MacLookAndFeel
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel //java6ÐÂƤ·ô£¬²£Á§Í¸Ã÷
ÎÒµÄ×ÊÔ´ÖÐÓÐÏà¹Ø java swing ·½ÃæµÄ½Ì³Ì£¬j ......

Ò»¸ö¼òµ¥µÄJava 3DÔ´´úÂë

Õâ¶ÎÔ´´úÂëʵÏÖÁËÔÚÒ»¸ö´°ÌåÖÐÏÔʾһ¸ö³¡¾°£»ÒÔÒ»¸öÆåÅ̸ñ×öµÄµØÃ棬ÔÚµØÃæÉϸ¡×ÅÒ»¸öÀ¶É«µÄÇòÌ壬ÔÚ³¡¾°ÖÐÓÐÒ»¸ö»·¾³¹âºÍÒ»¸öÖ±Éä¹â£¬ÊµÏÖÁËÓÃÊó±êÈ«½Ç¶ÈµÄ¹Û²ì³¡¾°µÄ¹¦ÄÜ¡£´ÓijÖÖÒâÒåÉÏÀ´ËµÕâµÄȷʵÏÖÁËÒ»²¿3DÓÎÏ·×îԭʼµÄ¿ò¼Ü¡£
´úÂëÊÇÕÕ×Å¡¶Killer Game Programming in Java¡·Ò»ÊéÖйØÓÚ3DÓÎÏ·ÖÆ×÷µÄÄDz¿·ÖдµÄ£¬ÓÉÓÚ´ ......

javaÐòÁл¯

ʲôÊÇjavaÐòÁл¯£¬ÈçºÎʵÏÖjavaÐòÁл¯£¿
´ð£ºÐòÁл¯¾ÍÊÇÒ»ÖÖÓÃÀ´´¦Àí¶ÔÏóÁ÷µÄ»úÖÆ£¬Ëùν¶ÔÏóÁ÷Ò²¾ÍÊǽ«¶ÔÏóµÄÄÚÈݽøÐÐÁ÷»¯¡£¿ÉÒÔ¶ÔÁ÷»¯ºóµÄ¶ÔÏó½øÐжÁд²Ù×÷£¬Ò²¿É½«Á÷»¯ºóµÄ¶ÔÏó´«ÊäÓÚÍøÂçÖ®¼ä¡£ÐòÁл¯ÊÇΪÁ˽â¾öÔÚ¶Ô¶ÔÏóÁ÷½øÐжÁд²Ù×÷ʱËùÒý·¢µÄÎÊÌâ¡£
ÐòÁл¯µÄʵÏÖ£º½«ÐèÒª±»ÐòÁл¯µÄÀàʵÏÖSerializable½Ó¿Ú£¬¸Ã½Ó¿Ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ