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

Àí½âJAVAÖеĽӿںͳéÏóÀà

  ³éÏóÀàÍùÍùÓÃÀ´±íÕ÷ÎÒÃÇÔÚ¶ÔÎÊÌâÁìÓò½øÐзÖÎö¡¢ Éè¼ÆÖеóöµÄ³éÏó¸ÅÄÊǶÔһϵÁп´ÉÏÈ¥²»Í¬£¬µ«ÊDZ¾ÖÊÉÏÏàͬµÄ¾ßÌå¸ÅÄîµÄ³éÏó£¬ÎÒÃDz»ÄÜ°ÑËüÃÇʵÀý»¯£¨Äò»³öÒ»¸ö¾ßÌåµÄ¶«Î÷£©ËùÒÔ³Æ֮Ϊ³éÏó¡£±ÈÈ磺ÎÒÃÇÒªÃèÊö“Ë®¹û”£¬Ëü¾ÍÊÇÒ»¸ö³éÏó£¬ËüÓÐÖÊÁ¿¡¢Ìå»ýµÈһЩ¹²ÐÔ£¨Ë®¹ûÓÐÖÊÁ¿£©£¬µ«ÓÖȱ·¦ÌØÐÔ£¨Æ»¹û¡¢éÙ×Ó¶¼ÊÇË®¹û£¬ËüÃÇÓÐ×Ô¼ºµÄÌØÐÔ£©£¬ÎÒÃÇÄò»³öΨһһÖÖÄÜ´ú±íË®¹ûµÄ¶«Î÷£¨ÒòΪƻ¹û¡¢éÙ×Ó¶¼²»ÄÜ´ú±íË®¹û£©£¬¿ÉÓóéÏóÀàÀ´ÃèÊöËü£¬ËùÒÔ³éÏóÀàÊDz»Äܹ»ÊµÀý»¯µÄ¡£µ±ÎÒÃÇÓÃij¸öÀàÀ´¾ßÌåÃèÊö“Æ»¹û”ʱ£¬Õâ¸öÀà¾Í¿ÉÒԼ̳ÐÃèÊö“Ë®¹û”µÄ³éÏóÀ࣬ÎÒÃǶ¼ÖªµÀ“Æ»¹û”ÊÇÒ»ÖÖ“Ë®¹û”¡£
¡¡¡¡  ÔÚÃæÏò¶ÔÏóÁìÓò£¬³éÏóÀàÖ÷ÒªÓÃÀ´½øÐÐÀàÐÍÒþ²Ø¡£ÎÒÃÇ¿ÉÒÔ¹¹Ôì³öÒ»¸ö¹Ì¶¨µÄÒ»×éÐÐΪµÄ³éÏóÃèÊö£¬µ«ÊÇÕâ×éÐÐΪȴÄܹ»ÓÐÈÎÒâ¸ö¿ÉÄܵľßÌåʵÏÖ·½Ê½¡£Õâ¸ö³éÏóÃèÊö¾ÍÊdzéÏóÀ࣬¶øÕâÒ»×éÈÎÒâ¸ö¿ÉÄܵľßÌåʵÏÖÔò±íÏÖΪÕâ¸ö³éÏóÀàµÄËùÓÐÅÉÉúÀà¡£
       ½Ó¿ÚºÍ³éÏóÀàÖеÄËùÓгéÏó·½·¨²»ÄÜÓоßÌåʵÏÖ£¬¶øÓ¦ÔÚËüÃǵÄ×ÓÀàÖÐʵÏÖËùÓеijéÏó·½·¨£¨ÒªÓк¯ÊýÌ壬ÄÄÅÂ{ }ÀïÊǿյģ©£¬£ê£á£ö£áµÄÉè¼ÆÕß¿ÉÄÜΪ³éÏó·½·¨µÄÁé»îÐÔ¿¼ÂÇ£¬Ã¿¸ö×ÓÀà¿É¸ù¾Ý×Ô¼ºµÄÐèÒªÀ´ÊµÏÖ³éÏó·½·¨¡£
 
       ³éÏóÀࣨabstract class£©µÄ¶¨Ò巽ʽÈçÏ£º
public abstract class AbstractClass //ÀïÃæÖÁÉÙÓÐÒ»¸ö³éÏó·½·¨
{
¡¡¡¡public int t; //¿ÉÒÔÓÐÆÕͨÊý¾Ý³ÉÔ±
¡¡¡¡public abstract void method1(); //³éÏó·½·¨£¬³éÏóÀàµÄ×ÓÀàÔÚÀàÖбØÐëʵÏÖ³éÏóÀàÖеijéÏó·½·¨
¡¡¡¡public abstract void method2();
¡¡¡¡public void method3(); //¿ÉÒÔÓзdzéÏó·½·¨
¡¡¡¡public int method4();
¡¡¡¡publi int method4 (){
¡¡¡¡…… //³éÏóÀàÖпÉÒÔ¸³Óè·Ç³éÏó·½·¨·½·¨µÄĬÈÏÐÐΪ£¬¼´·½·¨µÄ¾ßÌåʵÏÖ
¡¡¡¡}
     public void method3(){
¡¡¡¡…… //³éÏóÀàÖпÉÒÔ¸³Óè·Ç³éÏó·½·¨·½·¨µÄĬÈÏÐÐΪ£¬¼´·½·¨µÄ¾ßÌåʵÏÖ
¡¡¡¡}
}
       ½Ó¿Ú£¨interface£©µÄ¶¨Ò巽ʽÈçÏ£º
public interface Interface
{
¡¡¡¡static final int i=1; //½Ó¿ÚÖв»ÄÜÓÐÆÕͨÊý¾Ý³ÉÔ±£¬Ö»Äܹ»Óо²Ì¬µÄ²»Äܱ»Ð޸ĵÄÊý¾Ý³ÉÔ±,static±íʾȫ¾Ö
£¬final±íʾ²»¿ÉÐ޸ģ¬¿ÉÒÔ²»ÓÃstatic final ÐÞÊΣ¬»áÒþʽµÄÉùÃ÷Ϊstaticº


Ïà¹ØÎĵµ£º

JavaÓïÑÔÖÐthis, super, synchronized

1.
superÊǵ÷Óø¸ÀàµÄ¹¹Ô캯Êý
2.
thisµ÷ÓõÄͬÀàµÄ¹¹Ô캯Êý.
3.
3.1
synchronized¹Ø¼ü×ÖµÄ×÷ÓÃÓòÓжþÖÖ
3.1.1
ÊÇij¸ö¶ÔÏóʵÀýÄÚ£¬synchronized aMethod(){}¿ÉÒÔ·ÀÖ¹¶à¸öÏß³Ìͬʱ·ÃÎÊÕâ¸ö¶ÔÏóµÄsynchronized·½·¨£¨Èç¹ûÒ»¸ö¶ÔÏóÓжà¸ösynchronized·½·¨£¬Ö»ÒªÒ»¸öÏ̷߳ÃÎÊÁËÆäÖеÄÒ»¸ösynchronized·½·¨£¬ÆäËüÏ̲߳»ÄÜ ......

Java °ÑÎı¾ÖеÄÊý¾Ý²åÈëµ½MySqlÊý¾Ý¿â

Ò»¹²ÓÐÈý¸öÀࣺWriteFile ; ReadFile ; InsertDB ;
//WriteFile.java
//ÓÃÓÚ½«ÐÅϢдÈëÎı¾Îļþ
package org.mb.insertfromfile;
import java.io.*;
public class WriteFile{
private int count = 0 ;
public int getCount() {
return count;
}
public void setCount(int count) {
this.cou ......

JavaýÌå¼Ü¹¹»ù´¡

JavaýÌå¼Ü¹¹»ù´¡
ÄÚÈݱí¸ñ
1. ¹ØÓÚ´ËÖ¸ÄÏ
2. Ò»¸ö¼òµ¥µÄÒôƵ²¥·ÅÆ÷
3. JMFÓû§½Ó¿Ú×é¼þ
4. JMF¸ÅÄî
5. ´«²¥ºÍ½ÓÊÕýÌå
6. ×ܽáÒÔ¼°×ÊÔ´
µÚÒ»½Ú. ¹ØÓÚ´ËÖ¸ÄÏ
´ËÖ¸ÄÏ°üº¬µÄÄÚÈÝ£¿
Java ýÌå¼Ü¹¹(JMF)ÊÇÒ»¸öÁîÈ˼¤¶¯µÄͨÓõÄAPI£¬ËüÔÊÐíJava¿ª·¢ÕßÓÃÐí¶à²»Í¬µÄ·½·¨´¦ÀíýÌå¡£±¾Ö¸ÄÏÖ÷Ҫͨ¹ýʹÓù¤×÷µÄÀý×ÓÌṩһ¸öJ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ