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

javaÖгõʼ»¯Ë³Ðò£¨×ª£©

£¨1£©³õʼ»¯µÄ˳Ðò£¨¾²Ì¬¡¢·Ç¾²Ì¬¡¢final¡¢±äÁ¿¡¢¶ÔÏó£©
    ¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£
ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã£º
Java´úÂ룺
public class InitialOrderTest {

// ¾²Ì¬±äÁ¿
public static String staticField = "¾²Ì¬±äÁ¿";
// ±äÁ¿
public String field = "±äÁ¿";

// ¾²Ì¬³õʼ»¯¿é
static {
System.out.println(staticField);
System.out.println("¾²Ì¬³õʼ»¯¿é");
}

// ³õʼ»¯¿é
{
System.out.println(field);
System.out.println("³õʼ»¯¿é");
}

// ¹¹ÔìÆ÷
public InitialOrderTest() {
System.out.println("¹¹ÔìÆ÷");
}

public static void main(String[] args) {
new InitialOrderTest();
}
}

ÔËÐÐÒÔÉÏ´úÂ룬ÎÒÃÇ»áµÃµ½ÈçϵÄÊä³ö½á¹û£º
¾²Ì¬±äÁ¿
¾²Ì¬³õʼ»¯¿é
±äÁ¿
³õʼ»¯¿é
¹¹ÔìÆ÷
£¨2£©³õʼ»¯µÄ˳Ðò£¨×ÓÀà¡¢¸¸Àࣩ
Java´úÂë £º
 
class Parent {   
    // ¾²Ì¬±äÁ¿   
    public static String p_StaticField = "¸¸Àà--¾²Ì¬±äÁ¿";   
    // ±äÁ¿   
    public String p_Field = "¸¸Àà--±äÁ¿";   
  
    // ¾²Ì¬³õʼ»¯¿é   
    static {   
        System.out.println(p_StaticField);   
        System.out.println("¸¸Àà--¾²Ì¬³õʼ»¯¿é");   
    }   
  
    // ³õʼ»¯¿é   
    {   
        System.out.println(p_Field);   
        System.out.println("¸¸Àà--³õʼ»¯¿é");   
    } &nbs


Ïà¹ØÎĵµ£º

javaʵÏÖFTP²Ù×÷

 import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import sun.net.TelnetOutputStream;
import sun.net.TelnetInputStream;
import sun.net.ftp.FtpClient;
public class download ...{
& ......

Java SE 5·þÎñÖÜÆÚÒÑÖÕ½á

 ×ª×ÔInfoQ£¬×÷Õß Charles Humble ÒëÕß ÕÅÁú
±¾ÔÂ3ÈÕSunµÄJ2SE 5.0ʵÏÖÒÑÖÕ½á·þÎñÖÜÆÚ£¨End of Service Life£¬¼´EOSL£©£¬ÕâÒ»ÌìÒ²ÊÇ×îºóµÄÒ»´Î5.0¸üз¢²¼ÈÕÆÚ£¨J2SE 5.0 Update 22£©¡£Ñ°ÇóSunÖ§³ÖµÄÓû§¿ÉÒÔÑ¡ÔñÉý¼¶µ½Java 6»òÊǶ©ÔÄSunµÄJava for Business³ÌÐò¡£
SunÌṩÁ˶àÖÖ¶àÑùµÄJava¸¶·ÑÖ§³Ö¡£Java¾­µäÖ§³Ö£ ......

Java socket ÈëÃűà³ÌʵÀý

 ÕâÊÇÒ»¸öC/SÖ®¼äͨÐŵÄÀý×Ó,ÔÚJDK1.4ϲâÊÔͨ¹ý.
//·þÎñÆ÷¶ËÔ´³ÌÐòtcpserver.java
import java.io.*;
import java.net.*;
public class tcpserver
{
    public static void main(String[] args) throws  IOException
    {
        ......

JAVA·ÃÎÊfirebirdÊý¾Ý¿âÖ®Jaybird

 
¹ØÓÚJaybird-2.1.6JDK_1.5µÄʹÓ÷½·¨ÈçÏ£º
Ê×ÏÈ£º°²×°Jaybird
µÚÒ»²½£º½«¸ùĿ¼ÏµÄ
       jaybird21.dll,
       GDS32.DLL,
       icudt30.dll,
       icuuc30.dll,
&nbs ......

JavaÏà¶Ô·¾¶/¾ø¶Ô·¾¶×Ü½á £¨×ª£©

1.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
ServletÖУ¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ