javaÐéÄâ»ú
ʲôÊÇJavaÐéÄâ»ú
JavaÐéÄâ»ú£¨Java Virtual Machine) ¼ò³ÆJVM
¡¡¡¡JavaÐéÄâ»úÊÇÒ»¸öÏëÏóÖеĻúÆ÷,ÔÚʵ¼ÊµÄ¼ÆËã»úÉÏͨ¹ýÈí¼þÄ£ÄâÀ´ÊµÏÖ¡£JavaÐéÄâ»úÓÐ×Ô¼ºÏëÏóÖеÄÓ²¼þ,Èç´¦ÀíÆ÷¡¢¶ÑÕ»¡¢¼Ä´æÆ÷µÈ,»¹¾ßÓÐÏàÓ¦µÄÖ¸Áîϵͳ¡£
JavaÐéÄâ»úµÄÌØµã
¡¡¡¡JavaÓïÑÔµÄÒ»¸ö·Ç³£ÖØÒªµÄÌØµã¾ÍÊÇÓëÆ½Ì¨µÄÎÞ¹ØÐÔ¡£¶øÊ¹ÓÃJavaÐéÄâ»úÊÇʵÏÖÕâÒ»ÌØµãµÄ¹Ø¼ü¡£Ò»°ãµÄ¸ß¼¶ÓïÑÔÈç¹ûÒªÔÚ²»Í¬µÄƽ̨ÉÏÔËÐÐ,ÖÁÉÙÐèÒª±àÒë³É²»Í¬µÄÄ¿±ê´úÂë¡£¶øÒýÈëJavaÓïÑÔÐéÄâ»úºó,JavaÓïÑÔÔÚ²»Í¬Æ½Ì¨ÉÏÔËÐÐʱ²»ÐèÒªÖØÐ±àÒë¡£JavaÓïÑÔʹÓÃģʽJavaÐéÄâ»úÆÁ±ÎÁËÓë¾ßÌåÆ½Ì¨Ïà¹ØµÄÐÅÏ¢,ʹµÃJavaÓïÑÔ±àÒë³ÌÐòÖ»ÐèÉú³ÉÔÚJavaÐéÄâ»úÉÏÔËÐеÄÄ¿±ê´úÂë(×Ö½ÚÂë),¾Í¿ÉÒÔÔÚ¶àÖÖÆ½Ì¨Éϲ»¼ÓÐ޸ĵØÔËÐС£JavaÐéÄâ»úÔÚÖ´ÐÐ×Ö½ÚÂëʱ,°Ñ×Ö½ÚÂë½âÊͳɾßÌåÆ½Ì¨ÉϵĻúÆ÷Ö¸ÁîÖ´ÐС£
JavaÐéÄâ»úµÄʹÓÃÖ÷Ìå
¡¡¡¡JavaÐéÄâ»úÊÇJavaÓïÑԵײãʵÏֵĻù´¡,¶ÔJavaÓïÑÔ¸ÐÐËȤµÄÈ˶¼Ó¦¶ÔJavaÐéÄâ»úÓиö´ó¸ÅµÄÁ˽⡣ÕâÓÐÖúÓÚÀí½âJavaÓïÑÔµÄһЩÐÔÖÊ,Ò²ÓÐÖúÓÚʹÓÃJavaÓïÑÔ¡£¶ÔÓÚÒªÔÚÌØ¶¨Æ½Ì¨ÉÏʵÏÖJavaÐéÄâ»úµÄÈí¼þÈËÔ±,JavaÓïÑԵıàÒëÆ÷×÷ÕßÒÔ¼°ÒªÓÃÓ²¼þоƬʵÏÖJavaÐéÄâ»úµÄÈËÀ´Ëµ,Ôò±ØÐëÉî¿ÌÀí½âJavaÐéÄâ»úµÄ¹æ·¶¡£ÁíÍâ,Èç¹ûÄãÏëÀ©Õ¹JavaÓïÑÔ,»òÊÇ°ÑÆäËüÓïÑÔ±àÒë³ÉJavaÓïÑÔµÄ×Ö½ÚÂë,ÄãÒ²ÐèÒªÉîÈëµØÁ˽âJavaÐéÄâ»ú¡£
JavaÐéÄâ»úÖ§³ÖµÄÊý¾ÝÀàÐÍ
¡¡¡¡JavaÐéÄâ»úÖ§³ÖJavaÓïÑԵĻù±¾Êý¾ÝÀàÐÍÈçÏÂ:
¡¡¡¡byte://1×Ö½ÚÓзûºÅÕûÊýµÄ²¹Âë
¡¡¡¡short://2×Ö½ÚÓзûºÅÕûÊýµÄ²¹Âë
¡¡¡¡int://4×Ö½ÚÓзûºÅÕûÊýµÄ²¹Âë
¡¡¡¡long://8×Ö½ÚÓзûºÅÕûÊýµÄ²¹Âë
¡¡¡¡float://4×Ö½ÚIEEE754µ¥¾«¶È¸¡µãÊý
¡¡¡¡double://8×Ö½ÚIEEE754Ë«¾«¶È¸¡µãÊý
¡¡¡¡char://2×Ö½ÚÎÞ·ûºÅUnicode×Ö·û
¡¡¡¡¼¸ºõËùÓеÄJavaÀàÐͼì²é¶¼ÊÇÔÚ±àÒëʱÍê³ÉµÄ¡£ÉÏÃæÁгöµÄÔʼÊý¾ÝÀàÐ͵ÄÊý¾ÝÔÚJavaÖ´ÐÐʱ²»ÐèÒªÓÃÓ²¼þ±ê¼Ç¡£²Ù×÷ÕâЩÔʼÊý¾ÝÀàÐÍÊý¾ÝµÄ×Ö½ÚÂë(Ö¸Áî)±¾Éí¾ÍÒѾָ³öÁ˲Ù×÷ÊýµÄÊý¾ÝÀàÐÍ,ÀýÈçiadd¡¢ladd¡¢faddºÍdaddÖ¸Áî¶¼ÊǰÑÁ½¸öÊýÏà¼Ó,Æä²Ù×÷ÊýÀàÐͱðÊÇint¡¢long¡¢floatºÍdouble¡£ÐéÄâ»úûÓиøboolean(²¼¶û)ÀàÐÍÉèÖõ¥¶ÀµÄÖ¸Áî¡£booleanÐ͵ÄÊý¾ÝÊÇÓÉintegerÖ¸Áî,°üÀ¨integer·µ»ØÀ´´¦ÀíµÄ¡£booleanÐ͵ÄÊý×éÔòÊÇÓÃbyteÊý×éÀ´´¦ÀíµÄ¡£ÐéÄâ»úʹÓÃIEEE754¸ñʽµÄ¸¡µãÊý¡£²»Ö§³ÖIEEE¸ñʽµÄ½Ï¾ÉµÄ¼ÆËã»ú,ÔÚÔËÐÐJavaÊýÖµ¼ÆËã³ÌÐòʱ,¿ÉÄÜ»á·Ç³£Âý¡£
¡¡¡¡ÐéÄâ»úÖ§³ÖµÄÆäËüÊý¾ÝÀàÐͰüÀ¨:
¡¡¡¡object//¶ÔÒ»¸öJavaobject(¶ÔÏó)µÄ4×Ö½ÚÒýÓÃ
¡¡¡¡returnAddress//4×Ö½Ú,
Ïà¹ØÎĵµ£º
1.¼ÆËãijһÔ·ݵÄ×î´óÌìÊý
Calendar time=Calendar.getInstance();
time.clear();
time.set(Calendar.YEAR,year); //year Ϊ int
time.set(Calendar.MONTH,i-1);//×¢Òâ,Calendar¶ÔÏóĬÈÏÒ»ÔÂΪ0
int day=time.getActualMaximum(Calendar.DAY_OF_MONTH) ......
ͻ񻣼
±¾ÎÄÕë¶Ôjava³õѧÕß»òÕßannotation³õ´ÎʹÓÃÕßÈ«ÃæµØËµÃ÷ÁËannotationµÄʹÓ÷½·¨¡¢¶¨Ò巽ʽ¡¢·ÖÀà¡£³õѧÕß¿ÉÒÔͨ¹ýÒÔÉϵÄ˵Ã÷ÖÆ×÷¼òµ¥µÄannotation³ÌÐò£¬µ«ÊǶÔÓÚһЩ¸ß¼¶µÄannotationÓ¦Óã¨ÀýÈçʹÓÃ×Ô¶¨ÒåannotationÉú³ÉjavabeanÓ³ÉäxmlÎļþ£©»¹ÐèÒª½øÒ»²½µÄÑо¿ºÍ̽ÌÖ¡£Éæ¼°µ½ÉîÈëannotationµÄÄÚÈÝ£¬×÷Õß½«ÔÚºóÎÄ¡ ......
ÔÚjavaÖпÉÒÔͨ¹ýRuntime.getRuntime().exec(cmd)À´Ö´ÐÐÍⲿÃüÁÎұȽϳ£ÓõÄÊǵ÷ÓÃshell½Å±¾À´Íê³ÉijЩ¹¤×÷£¬Ò²¿ÉÒÔÖ±½ÓÖ´ÐÐÒ»¸öos µÄÃüÁ±È½Ïµ÷ÓÃimagemagickÀ´Íê³ÉͼƬµÄһЩ²Ù×÷£¬ÆäÖÐÐèҪעÒâµÄÓÐÁ½µã£¬1ÊÇ×îºÃ´øÉÏÃüÁîµÄÍêÕû·¾¶,·ñÔòÃüÁî¿ÉÄܲ»»á±»Ö´ÐУ¬¶øÇÒҲûÓÐÈκα¨´íµÄÐÅÏ¢Êä³ö£¬2ÌØ±ðҪעÒâ¿Õ¸ñ£¬±ÈÈçÎÄ ......
½Ó´¥ÁËJTAPI¿ª·¢Ò»¶Îʱ¼ä£¬¸Õ¿ªÊ¼½Ó´¥Ê±£¬·Ç³£Í·´ó£¬ºÜ¶à¸ÅÄî²»ºÃÀí½â¡£ ÏÈÁиö¿ò¼Ü£¬¼Ç¼һÏÂ×Ô¼ºµÄѧϰ¹ý³Ì¡£
Ò»¡¢JTAPI (Java Telephony API )
ÔÚJTAPI֮ǰ£¬Ã¿¸ö¹«Ë¾¶¼ÊǸ÷×ÔµÄÒ»Ì×CTI¿ª·¢½Ó¿Ú¡£ÎªÁËͳһҵ½ç±ê×¼£¬SUN¹«Ë¾ÍƳöÁËjtapi±ê×¼½Ó¿Ú¡£¸Ã½Ó¿Ú¶¨ÒåÁ˺ô½ÐÖÐÐÄÖеĺܶà¶ÔÏó£¬ÈçAddress,Agen ......