Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Àà±ä³Éwebservice

»·¾³eclipse6.0 +tomcat6.0
1.´´½¨Ò»¸ö¶¯Ì¬web¹¤³Ì£ºDynamic Web Project
2.Ìîд¹¤³ÌÃû³Æºó £¬Ò»Â·next -->finish ÔÚÕâÀïÎÒ´´½¨µÄÃû³ÆΪmywebservice
 
 
 
3.ÔÚsrc´´½¨×Ô¼ºµÄ°ücom.zhangchaoºÍÀà Hello.java£¬ÎÒÃÇÕâÀﻹÊÇ×ö¸ö¼òµ¥µÄhelloworld¡£
 
ÕâÀïÖ»×ö¶ÔijÈ˽øÐÐÎʺò¡£
 
4.Ì ......

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

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

[JAVA web·þÎñ¶Ë]ÓÃwsdl2java¼ò»¯·þÎñ¶ËµÄ±àд

 (Windows)
%AXIS2_HOME%\bin\WSDL2Java -uri resources\META-INF\StockQuoteService.wsdl -p samples.quickstart.service.adb -d adb -s -ss -sd -ssi -o build\service
(Linux)
$AXIS2_HOME/bin/WSDL2Java -uri resources/META-INF/StockQuoteService.wsdl -p samples.quickstart.service.adb -d adb -s -ss -sd ......

JavaÊý¾Ý¿âÁ¬½Ó³Ø

 
javaÊý¾Ý¿âÁ¬½Ó³Ø

javaÊý¾Ý¿âÁ¬½Ó³Ø

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Enumeration;
import java.util.Vector;
......

¡¾×ª¡¿JAVA³õѧÎÊÌâ

   ×Ô¼ºÑ§Ï°JavaÒѾ­ÓÐÒ»¸öÔÂ×óÓÒÁË~~¶ÔһЩjavaÒ²ÓÐһЩ¸ÐÊÜ~~
µ±¿´µ½ÕâƪÎÄÕÂʱ£¬·¢ÏÖ»¹¿ÉÒÔ~~¾ÍתÀ´ºÍ´ó¼Ò·ÖÏíÒ»ÏÂ~~~
1 ʲôÊÇJava¡¢Java2¡¢JDK£¿JDKºóÃæµÄ1.3¡¢1.4.2°æ±¾ºÅÓÖÊÇÔõô»ØÊ£¿
´ð£ºJavaÊÇÒ»ÖÖͨÓõģ¬²¢·¢µÄ£¬Ç¿ÀàÐ͵ģ¬ÃæÏò¶ÔÏóµÄ±à³ÌÓïÑÔ
£¨Õª×ÔJava¹æ·¶µÚ¶þ°æ) JDKÊÇSun¹«Ë¾·Ö·¢µÄÃâ·ÑJa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ