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

java×Ô¶¨ÒåÀà


¼Ì³Ð£º
javaÖ»Óе¥¼Ì³Ð£¬²»ÄÜͬʱ¼Ì³Ð¶à¸öÀà
class Animal{}
class Fish extends Aniaml{}
 super.(¸¸ÀàÖÐÓë×ÓÀàÏàͬµÄ·½·¨£©();//super-ÌØÊâµÄ±äÁ¿£¬ÓÃÓÚ·ÃÎʸ¸ÀàÖÐÓë×ÓÀàÏàͬµÄ·½·¨£¬ÈçÏÂ
//¸¸Àà
class Fish extends animal
{
 void output()
 {
  System.out.println("Fish");
 }
}
//×ÓÀà
class SmallFish extends Fish
{
 void output()
 {
  super.output();
  System.out.println("SmallFish");
 }

¸¸Àà±äÁ¿ = ×ÓÀà±äÁ¿£»//ÕýÈ·
×ÓÀà±äÁ¿ = ¸¸Àà±äÁ¿£»//´íÎó
ÀàÐÍÅжϣº
±äÁ¿Ãû instanceof ÀàÐÍÃû£»//½á¹ûtrue false
×ÓÀà±äÁ¿ÊǸ¸ÀàµÄʵÀý£¬µ«ÊǸ¸Àà±äÁ¿²»ÊÇ×ÓÀàµÄʵÀý
ÓãÊǶ¯ÎïµÄʵÀý£¬¹ýÀ´²»ÊÇ
µ«ÊÇ£¬µ±¸¸Àà±äÁ¿ = ×ÓÀà±äÁ¿ºó£¬¸¸Àà±äÁ¿ÊÇ×ÓÀàÀàÐ͵ÄʵÀý
ҪСÐĸ¸ÀàÖдø²ÎÊýµÄ¹¹Ô캯Êý£¬ÔÚ×ÓÀàÖпÉÄܲ»ÄÜͨ¹ý
super(....);//¹¹Ô캯Êý£¬¿É½â¾ö´íÎ󣬻òÔÚ¸¸ÀàÖУ¬¼ÓÈëûÓвÎÊýµÄÖØÔØ
¹¹Ôì·½·¨²»Äܱ»¼Ì³Ð£¬²»ÄÜÓÃSmallFish(¸¸Àà²ÎÊý),Ö»ÄÜÓÃsuper(¸¸Àà²ÎÊý)
javap classname ÓÃÓÚ·´±àÒë
final¶¨Òå³£Á¿£¬
final double PI = 12.4;(¿ÉÒÔÔÚ¹¹Ô캯ÊýÀﶨÒ壬µ«²»ÄܸıäÆäÖµ)
ûÓÐdefine
¹ØÓÚ¹¹Ô캯Êý
µ±ÓÐÁË×Ô¶¨ÒåµÄ¹¹Ô캯Êýºó£¬java¾Í²»»áÔÙÌṩĬÈϵĹ¹Ô캯ÊýÁË
classname variable;
variable = new classname();//********ÓÐ()
DOS ÏÂÔËÐÐjavaÇø·Ö´óСд
javaÎļþÃûºÍ±àÒëºóµÄÀàÃû¿ÉÄܲ»Ò»Ñù£¬µ«ÔËÐÐʱҪÊäÈëÀàÃû
System.out.println("aaaa" + ±äÁ¿);


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

JVMÏê½âÖ®JavaÀ¬»ø»ØÊÕ»úÖÆÏê½âºÍµ÷ÓÅ £¨3£©

 5.ÈçºÎ´ÓJVMÖлñÈ¡ÐÅÏ¢À´½øÐе÷Õû
¡¡¡¡-verbose.gc¿ª¹Ø¿ÉÏÔʾgcµÄ²Ù×÷ÄÚÈÝ¡£´ò¿ªËü£¬¿ÉÒÔÏÔʾ×îæºÍ×î¿ÕÏÐÊÕ¼¯ÐÐΪ·¢ÉúµÄʱ¼ä¡¢ÊÕ¼¯Ç°ºóµÄÄÚ´æ´óС¡¢ÊÕ¼¯ÐèÒªµÄʱ¼äµÈ¡£´ò¿ª- xx:+ printgcdetails¿ª¹Ø£¬¿ÉÒÔÏêϸÁ˽âgcÖеı仯¡£´ò¿ª-XX: + PrintGCTimeStamps¿ª¹Ø£¬¿ÉÒÔÁ˽âÕâЩÀ¬»øÊÕ¼¯·¢ÉúµÄʱ¼ä£¬×ÔjvmÆô¶¯ÒÔºóÒÔ ......

FLASH+JAVA¿ª·¢ÊµÊ±ÍøÂçÓÎÏ·

 ±¾ÎÄ·ÖÁ½²¿·Ö£ºFLASH±à³Ì ºÍ Java±à³Ì£¬´ËÎļǼµÄ½ö½öÊÇÎÒÔÚ̽Ë÷ÖеÄһЩÊÕ»ñ£¬ÆäÖÐÓÃÁ˺ܶà¸öÈË»¯µÄÃèÊöÓïÑÔ£¬²¢²»ÊÇÒµ½ç±ê×¼µÄÓÃÓï¡£ £º£©
̽Ë÷±Ê¼Ç£º  
Ŀǰ¹úÄÚFlashÓ¦Óô󲿷ֻ¹ÊÇÔÚÖÆ×÷¾«ÃÀµÄ¶¯»­·½Ã棬µ«¾ÝÎÒÁ˽âÔçÔÚFlash4 µÄʱ´ú£¬¹úÍâһЩÈ˾ÍÒѾ­¿ªÊ¼½«flash¼¼ÊõÔËÓÃÓÚ¿ª·¢¶¯Ì¬ÍøÕ¾£¨ºÍphp¡ ......

Java»ù±¾Óï·¨

 finalize·½·¨
ËüÊÇjava.lang.ObjectÀàÖеķ½·¨. ÊÇprotectedµÄ.
ȱʡʱÕâ¸ö·½·¨ÊǿյÄ. JavaÔËÐÐϵͳÔÚÀ¬»ø»ØÊÕʱÔÚ¶ÔÏó±»³·Ïú֮ǰµ÷ÓÃÕâ¸ö·½·¨. µ«ÓÉÓÚÀ¬»øµ¥Ôª
»ØÊÕµÄʱ¼äÊDz»È·¶¨µÄ.ËùÒÔ²»Äܹý·ÖÒÀÀµËü(ÕâºÍc++µÄÎö¹¹º¯Êý²»Í¬). 
¶øÖ»ÄÜÊÇ"ÔÚ¶ÔÏó±»³·Ïú֮ǰ"×öһЩ´¦Àí.ÀýÈç¿ÉÒÔÔÚÕâÀï¹Ø±Õ¹¹Ôì·½·¨Öдò¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ