Javaѧϰ±Ê¼Ç1
Ò»¡¢JavaÔËÐÐʱµÄÁ½ÖÖºËÐÄ»úÖÆ
£¨1£©JavaÐéÄâ»ú£¨Java Virtual Machine£©
ÓÃÀ´´¦ÀíJavaÔ´Îļþ±àÒëºóµÄ×Ö½ÚÂ룬ÆÁ±Îµ×²ãÔËÐÐƽ̨µÄ²îÒ죬ʵÏÖ“Ò»´Î±àÒ룬Ëæ´¦Ö´ÐД£¬¶øÇÒ²»Í¬µÄÔËÐÐƽ̨
Óв»Í¬µÄÐéÄâ»ú
£¨2£©À¬»ø»ØÊÕ»úÖÆ
ÎÞÐë³ÌÐòÔ±À´»ØÊÕÄڴ棬ÓÉJavaÐéÄâ»úÔÚ¿ÕÏÐʱ¼ä×Ô¶¯»ØÊÕ
¶þ¡¢Java³ÌÐòµÄ³õ²½¹æ·¶
£¨1£©JavaÔ´ÎļþµÄºó׺ÃûΪ.java£¬±àÒëÍêµÄ×Ö½ÚÂëºó׺ÃûΪ.class
£¨2£©JavaÔ´ÎļþµÄ»ù±¾×é³ÉΪÀà
£¨3£©JavaÔ´ÎļþÖÐ×î¶àÇÒÖ»ÄÜÖ»ÓÐÒ»¸öpublicÀ࣬ÆäËûÀ಻ÏÞ¡£Èç¹ûÔÎļþÖÐÓÐpublicÀ࣬ԴÎļþÃû±ØÐëºÍpublicÀàÃûÒ»Ñù
£¨4£©Java³ÌÐòµÄÖ´ÐÐÈë¿ÚΪmainº¯Êý£º£¨¹Ì¶¨Êéд¸ñʽ£©
public static void main(String[] args) {}
£¨5£©JavaÇø·Ö´óСд
£¨6£©JavaµÄÈýÖÖ×¢ÊÍ
// ×¢ÊÍÒ»ÐÐ
/* */ ×¢ÊͶàÐÐ
/**
* ×¢ÊͶàÐУ¬Çҿɱ»doc¹¤¾ß´¦Àí
*/
Ïà¹ØÎĵµ£º
·þÎñ¶ËµÄwebservicesµÄ·¢²¼ÊÇ»ùÓÚjax-ws¹æ·¶·¢²¼µÄ¡£ÏÂÃæÊÇ¿Í»§¶Ë¶¯Ì¬µ÷ÓõĴúÂ룬µ÷ÓõÄweb·þÎñÊÇ¿ÉÅäÖõġ£
1£ºÔÚxmlÎĵµÀïÅäÖÃwebservicesµÄwsdlµØÖ·£¬¶Ë¿ÚÃûºÍ²Ù×÷Ãû
2£ºÌṩһ¸ö·½·¨¶ÁÈ¡xmlÎĵµ£¬·µ»ØÒ»¸öList
List list= ReadAndWriteXML.getWebServiceWsdlList();
......
ÀàÐÍת»»×ܽ᣺
1.ÔÐÍÊý¾Ýbyte,short,int,long,float,double,char,boolean,СÀàÐÍÊý¾Ý¿ÉÒÔÖ±½Ó¸³¸ø´óÀàÐÍÊý¾ÝÀýÈç
int a=1;byte b=2;short c=3;float d=3;double e=4;char f='a';boolean g=true;long l=10;
c=b;
a=f;
d=a;
e=d;
byteÐÍÊý¾Ý²»ÄÜÖ±½Ó¸³¸øcharÐÍÊý¾Ý£¬ÒòΪbyte±íʾµÄÊÇ8λÓзûºÅÊý£¬¶øchar±íʾµ ......
//µ÷Óô洢¹ý³Ì´ø²Î
CallableStatement ca = conn.prepareCall("{call Login (?,?)}");
ca.setString(1,username);
& ......
×Ô¼ºÊÕ¼¯µÄһЩjava´¦ÀíÀ࣬¹©ÒÔºó²éѯ
package com.tools;
import java.text.SimpleDateFormat;
import java.util.Date;
public class StringHandler {
/******************************
* ¹¦ÄÜ£º½«IPµØַת»»Îª¶ÔÓ¦µÄÕûÊý
* ·µ»ØÀàÐÍ£ºlong
******************************/
public static long getI ......