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

Java¶ÁÎļþдÎļþ²Ù×÷

  ÕâÀJavaµÄ¶ÁÎļþºÍдÎļþ¶¼ÊÇ»ùÓÚ×Ö·ûÁ÷µÄ£¬Ö÷ÒªÓõ½ÏÂÃæµÄ¼¸¸öÀࣺ
1¡¢FileReader----¶ÁÈ¡×Ö·ûÁ÷
2¡¢FileWriter----дÈë×Ö·ûÁ÷
3¡¢BufferedReader----»º³åÖ¸¶¨ÎļþµÄÊäÈë
¸ÃÀàµÄ·½·¨ÓУº
void close() 
        ¹Ø±Õ¸ÃÁ÷¡£
 void mark(int readAheadLimit) 
        ±ê¼ÇÁ÷Öеĵ±Ç°Î»Öá£
 boolean markSupported() 
        ÅжϴËÁ÷ÊÇ·ñÖ§³Ö mark() ²Ù×÷£¨ËüÒ»¶¨Ö§³Ö£©
int read() 
        ¶ÁÈ¡µ¥¸ö×Ö·û¡£
 int read(char[] cbuf, int off, int len) 
        ½«×Ö·û¶ÁÈëÊý×éµÄijһ²¿·Ö¡£
 String readLine() 
        ¶ÁÈ¡Ò»¸öÎı¾ÐС£
 boolean ready() 
        ÅжϴËÁ÷ÊÇ·ñÒÑ×¼±¸ºÃ±»¶ÁÈ¡¡£
 void reset() 
        ½«Á÷ÖØÖÃΪ×îеıê¼Ç¡£
 long skip(long n) 
        Ìø¹ý×Ö·û¡£
4¡¢BufferedWriter----½«»º³å¶ÔÎļþµÄÊä³ö
¸ÃÀàµÄ·½·¨ÓУº
void close() 
        ¹Ø±Õ¸ÃÁ÷¡£
 void flush() 
        Ë¢Ð¸ÃÁ÷µÄ»º³å¡£
 void newLine() 
        Ð´ÈëÒ»¸öÐзָô·û¡£
 void write(char[] cbuf, int off, int len) 
        Ð´Èë×Ö·ûÊý×éµÄijһ²¿·Ö¡£
 void write(int c) 
        Ð´Èëµ¥¸ö×Ö·û¡£
 void write(String s, int off, int len) 
        Ð´Èë×Ö·û´®µÄijһ²¿·Ö¡£
¾Ù¸öÀý×ÓÈçÏ£º
package aillo;
import java.io.*;
public class FileWriterReader {
//¹¦ÄÜ:¶ÁÈ¡f:/aillo.txtÎļþµÄÄÚÈÝ(Ò»ÐÐÒ»ÐжÁ),²¢½«ÆäÄÚÈÝдÈëf:/jackie.txtÖÐ
//֪ʶµã:java¶ÁÎļþ¡¢Ð´Îļþ---<ÒÔ×Ö·ûÁ


Ïà¹ØÎĵµ£º

javaÖÐÊäÈëÊä³ö×ܽá

µÚÒ»½Ú Êý¾ÝÁ÷µÄ»ù±¾¸ÅÄî
      Àí½âÊý¾ÝÁ÷
Á÷Ò»°ã·ÖΪÊäÈëÁ÷£¨Input Stream£©ºÍÊä³öÁ÷£¨Output Stream£©Á½À࣬µ«ÕâÖÖ»®·Ö²¢²»ÊǾø¶ÔµÄ¡£±ÈÈçÒ»¸öÎļþ£¬µ±ÏòÆäÖÐдÊý¾Ýʱ£¬Ëü¾ÍÊÇÒ»¸öÊä³öÁ÷£»µ±´ÓÆäÖжÁÈ¡Êý¾Ýʱ£¬Ëü¾ÍÊÇÒ»¸öÊäÈëÁ÷¡£µ±È»£¬¼üÅÌÖ»ÊÇÒ»¸öÊýÈËÁ÷£¬¶øÆÁÄ»ÔòÖ»ÊÇÒ»¸öÊä³öÁ÷¡ ......

Java±¾ÖÊÂÛÖ®¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼

 ×ªÌù×Ô http://www.3800hk.com/Article/cxsj/java/jcjcjave/2009-11-10/Article_181759.html
¡¡1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾Ý
µÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯
ÖÎÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
¡¡¡¡
¡¡¡¡2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬ ......

Java¶àÏ̵߳ÄÏà¹Ø»úÖÆ[z]

 Ò» Ï̵߳Ļù±¾¸ÅÄî
Ïß³ÌÊÇÒ»¸ö³ÌÐòÄÚ²¿µÄ˳Ðò¿ØÖÆÁ÷.Ò»¸ö½ø³ÌÏ൱ÓÚÒ»¸öÈÎÎñ,Ò»¸öÏß³ÌÏ൱ÓÚÒ»¸öÈÎÎñÖеÄÒ»ÌõÖ´Ðз¾¶.£»¶à½ø³Ì:ÔÚ²Ù×÷ϵͳÖÐÄÜͬʱÔËÐжà¸öÈÎÎñ (³ÌÐò)£»¶àÏß³Ì:ÔÚͬһ¸öÓ¦ÓóÌÐòÖÐÓжà¸ö˳ÐòÁ÷ͬʱִÐУ»JavaµÄÏß³ÌÊÇͨ¹ýjava.lang.ThreadÀàÀ´ÊµÏֵģ»JVMÆô¶¯Ê±»áÓÐÒ»¸öÓÉÖ÷·½·¨(public static voi ......

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 Ö®"·´Éä"


1¡¢ÀàÐÍÄ£°å Class£º
    ÎïÒÔÀà¾Û£º
    ÎÒÃÇ¿ÉÒÔÓÃclass Person{ }   class Animal{ }À´ÃèÊöÒ»ÀàÈË»òÒ»ÀදÎ
    ÄÇôÔÙÏëһϣ¬ÎÒÃÇÊDz»ÊÇ¿ÉÒÔÓÃclass Class{ } À´³éÏóÃèÊöÀàÄØ£¿
    ´ð°¸Ê±¿ÉÒԵģ¬Õâ¾ÍÊÇjdkÖÐµÄ Class ÀࣨÀàÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ