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

java·½·¨µÄÖØÔØÓ븲¸Ç

java¶à̬µÄ2ÖÖ±íÏÖÐÎʽ ·½·¨ÖØÔغͷ½·¨¸²¸Ç
·½·¨ÖØÔØ£ºÍ¬Ò»¸öÀàÖУ¬·½·¨ÃûÏàͬ£¬²ÎÊýÁÐ±í²»Í¬µÄ2¸ö»ò¶à¸ö·½·¨¹¹³É·½·¨µÄÖØÔØ¡£
·½·¨¸²¸Ç£º×ÓÀàÖØÐÂʵÏÖÁ˸¸ÀàÖеķ½·¨¡£
·½·¨ÖØÔØ
/**
* ·½·¨ÖØÔØÂú×ãµÄÌõ¼þ
* ͬһ¸öÀàÖУ¬·½·¨ÃûÏàͬ£¬²ÎÊýÁÐ±í²»Í¬µÄ2¸ö»ò¶à¸ö·½·¨¹¹³É·½·¨µÄÖØÔØ
* ²ÎÊýÁÐ±í²»Í¬Ö¸²ÎÊýµÄÀàÐÍ£¬²ÎÊýµÄ¸öÊý£¬²ÎÊýµÄ˳ÐòÖÁÉÙÒ»Ïͬ
* ·½·¨µÄ·µ»ØÖµÀàÐÍ£¬·½·¨µÄÐÞÊηû¿ÉÒÔ²»Í¬¡£
*/
public class Overload{

public static void overLoad(int i){
System.out.println(i);
}

/* ÏÂÃæ·½·¨¶¼ÓëµÚÒ»¸ö·½·¨public static void overLoad(int i)Ïà±È½Ï*/
//public int overLoad(int k){}//´íÎ󣬲ÎÊýÁбíÏàͬ

//·µ»ØÖµÀàÐͲ»Ïàͬ
public int overLoad(int i,int k){
return 0;
}
//ÐÞÊηû²»Í¬
private void overLoad(double d){

}
//ÐÞÊηû£¬·µ»ØÖµÀàÐͶ¼²»Í¬
private double overLoad(double d,int k){
return 0;
}
}

·½·¨¸²¸Ç
/**
* ·½·¨¸²¸ÇÖ¸×ÓÀàÖØÐÂʵÏÖÁ˸¸ÀàÖеķ½·¨
* ·½·¨¸²¸ÇÔ¼ÊøÌõ¼þ£º
* 1.×ÓÀàµÄ·½·¨Ãû³Æ£¬²ÎÊýÁÐ±í£¬·µ»ØÖµÀàÐͱØÐëÓ븸ÀàÖз½·¨µÄÃû³Æ£¬²ÎÊýÁÐ±í£¬·µ»ØÖµÀàÐÍÒ»ÖÂ
* 2.×ÓÀà·½·¨²»ÄÜËõС¸¸Àà·½·¨µÄ·ÃÎÊȨÏÞ£¬µ«¿ÉÒÔÀ©´ó
* 3.×ÓÀà·½·¨²»ÄÜÅ׳ö±È¸¸Àà·½·¨¸ü¶àµÄÒì³£,¿ÉÒÔ²»Å׳öÒì³£
*/
public class Override{

}
class Exception1 extends Exception{}
class Exception2 extends Exception1{}
class Exception3 extends Exception2{}
class Parent{
void method() throws Exception2{}
}
class Son extends Parent{
//private void method(){}//´íÎó£¬ËõСÁ˸¸Àà·½·¨µÄ·ÃÎÊȨÏÞ
//int method(){} //´íÎ󣬷½·¨·µ»ØÖµÓ븸Àà·½·¨²»Ò»ÖÂ
void method(int k){} //ͨ¹ý±àÒ룬µ«²»Ó븸ÀàµÄ·½·¨method()¹¹³É¸²¸Ç

//public void method() throws Exception1{}//´íÎó Å׳ö±È¸¸Àà¸ü¶àµÄÒì³£

//public void method(){} //ÕýÈ· À©´ó¸¸Àà·½·¨µÄ·ÃÎÊȨÏÞ£¬²»Å׳öÒì³£
//void method() throws Exception3{}; //ÕýÈ· Å׳öµÄÒì³£±È¸¸ÀàÅ׳öµÄÒ쳣С
public void method() throws Exception3{}
}


Ïà¹ØÎĵµ£º

ÈçºÎ×ÔѧjavaѸËÙ³ÉΪjava¸ßÊÖ

ÈçºÎ×ÔѧjavaѸËÙ³ÉΪjava¸ßÊÖ 
     
    ÒªÏëѧºÃJava£¬Ê×ÏÈÒªÖªµÀJavaµÄ´óÖ·ÖÀà¡£ÎÒÃÇÖªµÀ£¬×Ô´ÓSunÍƳöJavaÒÔÀ´£¬¾ÍÁ¦Í¼Ê¹Ö®ÎÞËù²»°ü£¬ËùÒÔJava·¢Õ¹µ½ÏÖÔÚ£¬°´Ó¦ÓÃÀ´·ÖÖ÷Òª·ÖΪÈý´ó¿é£ºJ2SE,J2MEºÍJ2EE,ÕâÒ²¾ÍÊÇSunONE(Open NetEnvironment)Ìåϵ¡£J2SE¾ÍÊÇJava2µÄ±ê× ......

JavaÖÐInputstreamÓëReaderµÄÇø±ð


JavaÖÐInputstreamÓëReaderµÄÇø±ð
 
ReaderÖ§³Ö16λµÄUnicode×Ö·ûÊä³ö£¬InputStreamÖ§³Ö8λµÄ×Ö·ûÊä³ö¡£
ReaderºÍInputStream·Ö±ðÊÇI/O¿âÌṩµÄÁ½Ì×ƽÐжÀÁ¢µÄµÈ¼¶»ú¹¹£¬
InputStream¡¢OutputStreamÊÇÓÃÀ´´¦Àí8λԪµÄÁ÷£¬
Reader¡¢WriterÊÇÓÃÀ´´¦Àí16λԪµÄÁ÷¡£
¶øÔÚJAVAÓïÑÔÖУ¬byteÀàÐÍÊÇ8λµÄ£¬charÀàÐÍÊÇ1 ......

javaͼƬ´¦Àí ÎÄ×Öˮӡ ͼƬˮӡ Ëõ·Å ²¹°×

 ×ª×Ô http://www.javaeye.com/topic/309457
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ