JAVA±Ê¼Ç£¨¶þ£©
ÔÚÀàÖж¨ÒåµÄ·½·¨ÔÚ·µ»Øֵǰ¼ÓÉÏstaticÐÞÊηû¾Í¿ÉÒÔÔÚmain·½·¨Öе÷ÓÃÁË¡£Èç¹û²»ÓÃstaticÄǾÍÐèÒªÔÚmain·½·¨Öд´½¨¶ÔÏó£¬Ê¹ÓöÔÏóÀ´µ÷ÓöÔÏóµÄ·½·¨¡£
public class Test{
public static void main(String[] args){
Test t=new Test();
int b=1;
int c=2;
int[] a=new int[10];
t.sqort(a);
add(b,c)
}
public int[] sqort(int[] a){
.......
}
static int add(b,c){
.......
}
}
javaÖеÄÔËËã·û£¨javaµÄÔËËã·ûµÄÓÅÏȼ¶ºÍ½áºÏÐÔºÍc++Ïàͬ£©
System.out.println(3/2) °´ÕûÐͼÆËã µÃ1
1) >>= Ç°ÃæÊÇÁã²¹Á㣬ǰÃæÊÇÒ»²¹Ò»;
2) >>>= ÎÞ·ûºÅÓÒÒÆ£¨Ç¿ÖÆÓÒÒƶ¼»áÒƽøÒ»£©£¬ // Ç°ÃæÌî²¹0
>>=ºÍ>>>=¶ÔÓÚ¸ºÊý²»Ò»Ñù
ÕýÊý£ºÓÒÒÆnλµÈÓÚ³ýÒÔ2µÄn´Î·½
¸ºÊý£º±ä³ÉÕýÊý¡£
3) && ¶Ì·Ó룬ǰÃæΪ¼Ù£¬±í´ïʽΪ¼Ù£¬ºóÃæµÄ²Ù×÷²»»á½øÐУ¬& »á¶ÔËùÓÐÌõ¼þ½øÐÐÅжϡ£
4) || ¶Ì·»ò£¬Ç°ÃæΪÕ棬±í´ïʽΪÕ棬ºóÃæµÄ²Ù×÷²»»á½øÐУ¬| »á¶ÔËùÓÐÌõ¼þ½øÐÐÅжϡ£
Àý£º
if(a<3&(b=a)==0) b¸³Öµ
if(a<3&&(b=a)==0) b²»¸³Öµ
5)instanceof£¬ÊÇÓÃÓÚÅжÏÒ»¸ö¶ÔÏóÊÇ·ñÊôÓÚij¸öÀàÐÍ
6)javaÖеÄÇóÓàÔËËã·û“%”¿ÉÒÔ¶ÔÁ½¸öʵÐͱäÁ¿ÇóÓà
×¢£º°´Î»ÓëÊÇΪÁËÈÃijЩλÖÃÒ»£¬°´Î»»òÊÇÁîijЩλÖÃÁ㣬°´Î»Òì»òÊÇÁîijЩλȡ·´¡£
×¢£ºÊ¹ÓÃ×óÓÒλÒƺÍÎÞ·ûºÅÓÒÒÆÔËËã·ûµÄʹÓ÷½·¨ÊÇ ±äÁ¿Ãû<<=λÒÆλÊý £¬±äÁ¿Ãû>>=λÒÆλÊý (Ç°Á½¸öÔËËã·ûÊDz»»áºöÂÔÕûÐηûºÅ룬Ҳ³ÆÂ߼λÒÆ),±äÁ¿Ãû>>>=λÒÆλÊý
×¢Ò⣺×óÓÒλÒƺÍÎÞ·ûºÅÓÒÒÆÔËËã·ûÖ»ÄÜÓÃÓÚÕûÐμ°Æä¼æÈÝÀàÐÍ£¨byte£¬int£¬short£¬long£©
×¢Ò⣺java³ÌÐòµÄÔËÐйý³Ì£¬Ê×ÏÈÊÇÆô¶¯javaÐéÄâ»ú£¬È»ºó¾ÍÊÇÈ¥ÕÒ.classÎļþ£¬ÏÈÊÇ´ÓϵͳµÄÀà¿âÖÐÕÒ£¨ÏµÍ³Ö®»áÔÚ¸úĿ¼Ï²éÕÒ£¬ËùÒÔÐèÒªÍêÕûÀàÃû£©£¬Èç¹ûÕÒ²»µ½µÄ»°»áÈ¥CLASSPATHËùÉèÖõÄĿ¼ȥÕÒ¡£È»ºó¼ÓÔص½javaÐéÄâ»úÖС£Èç¹ûҪʹÓõ½ÆäËûµÄÔÚJAVA_HOMEÖÐûÓеÄÀà»òÕßÊÇÆäËû¹«Ë¾ÌṩµÄµÚÈý·½µÄ.jar£¨jar°ü£©Îļþʱ£¬Ò
Ïà¹ØÎĵµ£º
package protest;
import java.sql.*;
/**
create proc proc_select
@lname varchar(20),
@address varchar(20) output
as
&n ......
java.lang
Àà Process
java.lang.Object
java.lang.Process
--------------------------------------------------------------------------------
public abstract class Processextends ObjectProcessBuilder.start() ºÍ Runtime.exec ·½·¨´´½¨Ò»¸ö±¾»ú½ø³Ì£¬²¢·µ»Ø Process ×ÓÀàµÄÒ»¸öʵÀý£¬¸ÃʵÀý¿ÉÓÃÀ´¿ØÖ ......
±¾Õ¾(openjdk)ÏÖÔÚËùÁгöÀ´µÄ¾ÍÊÇHotSpotÐéÄâ»úµÄÔ´´úÂ룬¶øHotSpotÕýÊÇÄ¿Ç°ÊÀ½çÉÏjavaÐéÄâ»úµÄ×îºÃµÄʵÏÖ¡£
¡¡¡¡HotSpotµÄ»ù´¡´úÂëÊÇÐí¶àÈËÐÁÇÚÀͶ¯µÄ½á¾§£¬Õâ¸ö¹ý³ÌÆù½ñÒѳÖÐøÁ˳¬¹ý10ÄêµÄʱ¼ä£¨µ±È»Ê±¼ä³¤²¢²»Òâζ×ÅÒ»¶¨ºÃ£¬Ò»°ëÒ»°ë°É£©¡£ËùÒÔµ½ÏÖÔÚΪֹ£¬ËûµÄÌå»ýÊǺܴóµÄ¡£Óн«½ü1500¸öC/C++Í·ÒýÓúÍÔ´´úÂëÎļþ£¬Õû¸ ......
javaÓïÑÔÊǽâÊÍÖ´ÐУ¬javaÔ´ÂëÊÇͨ¹ý±àÒëÉú³ÉÒ»ÖÖÌØÊâµÄ.classµÄÖмä×Ö½âÂëÎļþ£¬È»ºóÔÙÓÐJVM½øÐнâÊÍÖ´ÐС£
javaÓïÑÔ¶ÔÖ¸Õë½øÐÐÁËÉϲãµÄ·â×°£¬Ëü±£Ö¤Äܹ»Í¨¹ýÕâ¸öÖ¸Õ루ÒýÓã©£¬À´·ÃÎÊÓÐЧµÄÄÚ´æµ¥Ôª¡£
javaÓïÑÔ²»ÔÊÐí¶à¼Ì³Ð£¬Ê¹¼Ì³Ð¹Øϵ³ÉÊ÷װͼ£¬Ã¿¸öÀ඼ֻÄÜÓÉÒ»¸ö¸¸Àà¡£
javaÓïÑԵĿª·¢Ð§Âʸߣ¬µ«Ö´ÐÐЧÂʵ͡££¨Ïൠ......