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

java ¼Ì³Ðdzµ­

Çë¿´ÏÂÃæÒ»Àý£º
public class TestAbstract {
int count;
public void operation(){
System.out.println("count = " + (++count));
}
}
public class Test extends TestAbstract {
public static void main(String[] args) {
Test test = new Test();
TestAbstract testAb = new TestAbstract();
testAb.operation();
test.operation();
}
}
ÔËÐнá¹ûÈçÏ£º
count = 1
count = 1
ÎÒÃÇÔÙ°Ñ main º¯ÊýÐÞ¸Äһϣº
public static void main(String[] args) {
Test test = new Test();
TestAbstract testAb = new Test ();
testAb.operation();
test.operation();
}ÔËÐнá¹ûÓÖÊÇÔõÑùµÄÄØ£¿
Æäʵ´òÓ¡½á¹ûÒÀÈ»ÊÇ£º
count = 1
count = 1


Ïà¹ØÎĵµ£º

java »ù´¡

1 import
2 package
3 ÐÞÊηû
4 ³éÏóÀà ½Ó¿Ú
5 static
6 StringÏà¹Ø
7 javadoc
8 Òì³£
9 ÈÕÆÚÏà¹Ø
10 ÊäÈëÊä³öÁ÷
11
Ò» import
     importÓÃÓÚµ¼È벻ͬ°üÖеÄÀ࣬²»Í¬°üÖеÄÀàÃû¿ÉÒÔÏàͬ¡£
     ÓÃ*ºÅÖ»Äܵ¼ÈëÒ»¸ö°ü£¬²»ÄÜʹÓà import java.* »òÕß java.*. ......

javaµ÷ÓÃOracleÓû§µÇ¼´æ´¢¹ý³Ì

PROCEDURE user_Login (
      i_AuthID         IN       user_UserPass.UserID%TYPE,        --Óû§´úÂë
      i_FunctionCode   IN &n ......

java×÷Òµ03

package homework03;
import java.util.Scanner;
/*
* ±àдһ¸öÀ࣬¸ÃÀàÓÐÒ»¸ö·½·¨
* public int f£¨int a£¬int b£©{
*
* }
* È»ºó±àдһ¸ö¸ÃÀàµÄ×ÓÀ࣬ҪÇóÖØд·½·¨f()£¬¶øÇÒÖØдµÄ·½·¨½«·µ»ØÁ½¸öÕûÊýµÄ×îС¹«±¶Êý¡£ÒªÇó£º
* ÔÚÖØдµÄ·½·¨µÄ·½·¨ÌåÖÐÊ×Ïȵ÷Óñ»Òþ²ØµÄ·½·¨·µ»ØaºÍbµÄ×î´ó¹«Ô¼Êým,È»ºó½«a*b/m ......

java Ïà¶Ô·¾¶ ¾ø¶Ô·¾¶ classes bin ¸ùĿ¼

³¢ÊÔÓÃDOM4j½âÎöspringÅäÖÃÎļþʱ,µÚÒ»²½¶ÁÈ¡Îļþʱ£¬»ñȡ·¾¶¾ÍÓöµ½ÁËÎÊÌ⣬¡£¡£¡£¾­¹ýgoogleÁËn+log n ´Î¸öÒ³Ã棬²ÅËãÓÐÁ˸ö´ÖdzµÄÈÏʶ£¬ÏÂÃæ¾ÍÈÃÎÒÓüò¶ÌµÄ»°ÓïÀ´×ܽáһϣ¨ºÃÏñÕâ¶Î¾ÍÈ«ÊÇ·Ï»°¡£¡£¡££©¡£¡£¡£
1¡¢springµÄÅäÖÃÎļþ´æ·ÅλÖÃÓÉweb.xmlÀïµÄcontextConfigLocationÀ´È·¶¨£¬Ò»°ãÊÇ·ÅÔÚweb-inf»òÕßÊÇsrc¸ùÄ¿Â¼Ï ......

JavaÀíÂÛÓëʵ¼ù:ÕýȷʹÓÃvolatile±äÁ¿

Java™ÓïÑÔ°üº¬Á½ÖÖÄÚÔÚµÄͬ²½»úÖÆ£ºÍ¬²½¿é£¨»ò·½·¨£©ºÍvolatile±äÁ¿¡£ÕâÁ½ÖÖ»úÖƵÄÌá³ö¶¼ÊÇΪÁËʵÏÖ´úÂëÏ̵߳ݲȫÐÔ¡£ÆäÖÐvolatile±äÁ¿µÄͬ²½ÐԽϲµ«ÓÐʱËü¸ü¼òµ¥²¢ÇÒ¿ªÏú¸üµÍ£©£¬¶øÇÒÆäʹÓÃÒ²¸üÈÝÒ׳ö´í¡£ÔÚÕâÆÚµÄJavaÀíÂÛÓëʵ¼ùÖУ¬Brian Goetz½«½éÉܼ¸ÖÖÕýȷʹÓÃvolatile±äÁ¿µÄģʽ£¬²¢Õë¶ÔÆäÊÊÓÃÐÔÏÞÖÆÌá³öÒ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ