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

JavaÓÅ»¯²ßÂÔ£¨Ò»£©£ºµ×²ãÓÅ»¯

By ³å³öÓîÖæ from °Á¶û¿Æ¼¼(www.hour41.com)
ʱ¼ä£º2006-11-17
×¢£º×ªÔØÇë×¢Ã÷×÷Õߺ͵¥Î»¡£
       JavaÓïÑÔ±ê×¼´Ó1996Äê·¢²¼µÚÒ»°æ£¬µ½2000Äê·¢²¼µÚ¶þ°æ£¬ÔÙµ½2004Äê·¢²¼µÚÈý°æ£¬javaÓïÑÔÒѾ­¾­¹ýÁË3´Î´óµÄÀ©³äºÍ¸Ä½ø¡£¹¦ÄÜÊÇÔ½À´Ô½¶à£¬²Ù×÷ÊÇÔ½À´Ô½¸´ÔÓ¡£ÏÔÈ»£¬ÐÔÄÜÎÊÌâÒ²¾ÍÔ½À´Ô½Í»³ö¡£±¾ÎĽ«Á¦Í¼´Ójava±¾Éí·ÖÎöÓÅ»¯java´úÂëµÄ¸÷ÖÖ¿ÉÄÜ¡£ÎÄÕµÄÊý¾Ýδ¾­Ìرð˵Ã÷£¬¾ùÀ´×ÔÓÚjdk5.0°æ±¾¡£
1 Java»ù±¾Êý¾ÝÀàÐÍʱ¼ä·ÖÎö
       ÒòΪµ¥¶À²âÊÔÒ»¸ö»ù±¾ÀàÐ͵ıäÁ¿ºÜ²»¾«È·£¬ÎÞÂÛÄãÔõô²â£¬Îó²î¶¼ºÜ´ó¡£ËùÒÔ£¬ÎÒÃÇÖ»ÄÜ´óÖµĸø³öËÙ¶ÈÉϵIJî±ð¡£
       ±äÁ¿µÄ·ÃÎÊËٶȺͷÃÎʵÄÀàÐÍÊÇÓкܴó¹ØϵµÄ£¬Ò»°ãÎÒÃÇÖ±½ÓʹÓÃ2¸ö±äÁ¿µÄ²Ù×÷ʱ¼äÀ´ºâÁ¿±äÁ¿µÄ·ÃÎÊËٶȡ£ÏÔÈ»£¬byte + byteµÄËٶȺÍint + intµÄËٶȿ϶¨ÊDz»Í¬µÄ¡£ÎÒÃǶÔÒÔϼ¸Àà»ù±¾²Ù×÷½øÐÐÁËËٶȲâÊÔ£º¼Ó¼õ(+,-)¡¢³Ë(*)¡¢³ý(/)¡¢ÒÆλ(>>,<<,>>>,<<<)ºÍ²¼¶ûÔËËã(|,&,^)¡£ÎªÁ˱£Ö¤Êý¾ÝµÄÓÐЧÐÔ£¬²âÊԵõ½ÁË3·Ý½á¹û£¬È¡Æ½¾ùÖµ£¬µÃµ½ÏÂÃæµÄ¸÷¸ö»ù±¾Êý¾ÝÀàÐ͵ĴóÖÂʱ¼ä»¨Ïú±ÈÀýÈçÏÂ±í£¨ÒÔϾùÒÔ´Ë×÷Ϊ²Î¿¼¶ÔÏó£¬Ò»¸öʱ¼äµ¥Î»ÔÚÎҵĻúÆ÷ÉÏ´óÔ¼ÊÇ600ps£¬¼´0.6ns£¬Ò²¾ÍÊÇ6e-10Ã룩£º
¼Ó¼õ
³Ë
³ý
ÒÆλ
²¼¶ûÔËËã
byte
1.5
6
50
1.5
1
short
1.2
5.5
50
1.2
1
int
1
5
48
1
1
long
5
10
140
8.5
2
float
15
600
350
-
-
double
15
600
350
-
-
       ´Ó±íÖÐÎÒÃÇ¿ÉÒÔ¿´³ö£º
1.         intµÄÔËËãËÙ¶È×î¿ì£¬short´ÎÖ®£¬byteÔÙ´ÎÖ®£¬longÔÙ´ÎÖ®¡£floatºÍdoubleÔËËãËÙ¶È×îÂý¡£
2.         ³ý·¨±È³Ë·¨ÂýµÄÌ«¶à£¬»ù±¾Éϳý·¨Êdz˷¨µÄ9±¶Ê±¼ä¡£µ±È»£¬³ýÁ˸¡µãÐÍÍâ¡£¸ù¾Ýintel cpuµÄ²Î¿¼Êý¾Ý£¬³Ë·¨¼ÆËãʱ¼äÊÇÒÆλÔËËãµÄ4-5±¶ÊDZȽÏÕý³£µÄ¡£
3.         longÀàÐ͵ļÆËãºÜÂý£¬½¨ÒéÒ»°ãÉÙʹÓÃËü¡£
4.         doubleÔËËãËٶȺÍfloatÏ൱£»
5.         ¸¡µãµÄ³Ë·¨±È³ý·¨ÒªÂý¡£µ«ÊÇ£¬Õâ¸ö½á¹û²¢²»ÄÜÕæÕý˵Ã÷ÎÊÌâ¡£Õâ¸ö½á¹ûÖ»ÊÇÒ»¸öÒ»°ã


Ïà¹ØÎĵµ£º

JNI£¨Java Native Interface£©


JNIÊÇJava Native InterfaceµÄËõд¡£´ÓJava 1.1¿ªÊ¼£¬Java Native Interface (JNI)±ê×¼³ÉΪjavaƽ̨µÄÒ»²¿·Ö£¬ËüÔÊÐíJava´úÂëºÍÆäËûÓïÑÔдµÄ´úÂë½øÐн»»¥¡£JNIÒ»¿ªÊ¼ÊÇΪÁ˱¾µØÒѱàÒëÓïÑÔ£¬ÓÈÆäÊÇCºÍC++¶øÉè¼ÆµÄ£¬µ«ÊÇËü²¢²»·Á°­ÄãʹÓÃÆäËûÓïÑÔ£¬Ö»Òªµ÷ÓÃÔ¼¶¨ÊÜÖ§³Ö¾Í¿ÉÒÔÁË¡£
      ʹÓÃjava ......

һЩJavaÌâÄ¿

1.String str = new String("abc"); ÇëÎʶ¨ÒåÁ˼¸¸ö¶ÔÏ󡣶¨ÒåÁËÁ½¸ö¶ÔÏó£¬Ò»¸ö"abc", Ò»¸öÊÇnew String().<String s = "abc";Ê×Ïȵ½¶ÑÖвéÕÒֵΪ"abc"µÄ¶ÔÏó£¬Ã»ÓоÍн¨Ò»¸ö¶ÔÏó£¬"abc"±¾Éí¾ÍÊÇÒ»¸ö¶ÔÏó¡£>
2.ÃæÏò¶ÔÏóµÄ¶«Î÷£ºabstract & interfaceµÄ¸÷×ÔµÄ×÷Óã¬Çø±ð¡£
3.ÃæÏò¶ÔÏóµÄÌØÕ÷£¬ÒÔ¼°ÔõôʵÏֵġ£1 ......

½«Java¶ÔÏó´æ´¢µ½OracleÊý¾Ý¿âÖÐ

 ¶ÔÏó³Ö¾Ã»¯£¬Ò²¾ÍÊÇ¿ÉÒÔ°ÑÕâ¸ö¶ÔÏóÓÀÔ¶µÄ±£´æÆðÀ´£¬ÕâÀïµÄ±£´æ²»½öÊǶÔÏó±¾Éí£¬»¹°üÀ¨ËûµÄÊôÐÔºÍËùÒÀÀµµÄÆäËûÀࡣͨ³££¬¶ÔÏó¿ÉÒԳ־û¯µ½Îļþ»òÕßÊÇÊý¾Ý¿âÖС£ÎÒÕâÀïÖ»½éÉÜÈçºÎ½«¶ÔÏó´æ´¢µ½Êý¾Ý¿âÖС£Ç¡ÇÉOracleÊý¾Ý¿âΪÎÒÃÇÌṩÁËÕâÑùµÄ·½±ã¡£
   ÔÚOracleÖУ¬ÓÐÒ»ÖÖblogµÄ×Ö¶ÎÀàÐÍ£¬ËüÊÇÓÃÀ´´æ´¢´óÁ¿µÄ¶ ......

java Á¬½Ó×Ö·û´®

1. MySQL(http://www.mysql.com)mm.mysql-2.0.2-bin.jar ;
Class.forName( "org.gjt.mm.mysql.Driver" );
cn = DriverManager.getConnection( "jdbc:mysql://MyDbComputerNameOrIP:3306/myDatabaseName", sUsr, sPwd );
2. PostgreSQL(http://www.de.postgresql.org)pgjdbc2.jar ;
Class.forName( "org.postgresql. ......

Java¶ÁÈ¡PDF,DocµÄ·½·¨

ºÜ¶àÈËÎʵ½ÈçºÎ³éÈ¡word£¬excel£¬pdf°¢¡£ÕâÀïÎÒ×ܽáһϳéÈ¡word,pdfµÄ
¼¸ÖÖ·½·¨¡£
1¡£ÓÃjacob.
ÆäʵjacobÊÇÒ»¸öbridage£¬Á¬½ÓjavaºÍcom»òÕßwin32º¯ÊýµÄÒ»¸öÖмä¼þ£¬jacob²¢²»ÄÜÖ±½Ó³éÈ¡word,excelµÈÎļþ£¬ÐèÒª×Ô¼ºÐ´dllŶ£¬²»¹ýÒѾ­ÓÐΪÄãдºÃµÄÁË£¬¾ÍÊÇjacobµÄ×÷ÕßÒ»²¢ÌṩÁË¡£
jacobÏÂÔØ£ºhttp://www.matrix.org ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ