JavaÖÐnative¹Ø¼ü×ÖÓ÷¨
ÔÚͨ¶ÁjdkÔ´´úÂëµÄʱºò·¢ÏÖÐí¶àjava·½·¨Ç°¶¼ÓÐnative¹Ø¼ü×ÖÐÞÊΣ¬×îºóµÃÖªnativeÊÇÓëC++ÁªºÏ¿ª·¢µÄʱºòÓõģ¬java×Ô¼º¿ª·¢²»Óá£
ʹÓÃnative¹Ø¼ü×Ö˵Ã÷Õâ¸ö·½·¨ÊÇÔÉúº¯Êý£¬Ò²¾ÍÊÇÕâ¸ö·½·¨ÊÇÓÃC/C++ÓïÑÔʵÏֵģ¬²¢ÇÒ±»±àÒë³ÉÁËDLL£¬ÓÉjavaÈ¥µ÷Óá£ÕâЩº¯ÊýµÄʵÏÖÌåÔÚDLLÖУ¬JDKµÄÔ´´úÂëÖв¢²»°üº¬£¬ÄãÓ¦¸ÃÊÇ¿´²»µ½µÄ¡£¶ÔÓÚ²»Í¬µÄƽ̨ËüÃÇÒ²ÊDz»Í¬µÄ¡£ÕâÒ²ÊÇjavaµÄµ×²ã»úÖÆ£¬Êµ¼ÊÉÏjava¾ÍÊÇÔÚ²»Í¬µÄƽ̨Éϵ÷Óò»Í¬µÄnative·½·¨ÊµÏÖ¶Ô²Ù×÷ϵͳµÄ·ÃÎʵġ£
native ÊÇÓÃ×öjava ºÍÆäËûÓïÑÔ£¨Èçc++£©½øÐÐÐ×÷ʱÓõÄÒ²¾ÍÊÇnative ºóµÄº¯ÊýµÄʵÏÖ²»ÊÇÓÃjavaдµÄ£¬ nativeµÄÒâ˼¾ÍÊÇ֪ͨ²Ù×÷ϵͳ£¬Õâ¸öº¯ÊýÄã±ØÐë¸øÎÒʵÏÖ£¬ÒòΪÎÒҪʹÓá£ËùÒÔnative¹Ø¼ü×ֵĺ¯Êý¶¼ÊDzÙ×÷ϵͳʵÏֵģ¬ javaÖ»Äܵ÷Óá£
Ïà¹ØÎĵµ£º
import java.io.*;
import java.lang.String;
public class Switchover {
public static String[] strChi = {"Áã","Ò¼","·¡","Èþ","ËÁ","Îé","½","Æâ","°Æ","¾Á"};
public static String[] strUnits = {"","","Ê°","°Û","Ǫ","Íò","Ê°","°Û","Ǫ","ÒÚ","Ê°","°Û","Ǫ","Õ×","Ê°","°Û","Ǫ","½Ç","·Ö"};
//ÑéÖ¤Êä ......
JDO ¸ÅÊö
¡¡¡¡³¤¾ÃÒÔÀ´£¬Java Ó¦ÓóÌÐòºÍ³Ö¾ÃÊý¾Ý¹ÜÀíÖ®¼äµÄ¹ØϵһֱÊDz»ÈÝÒ×´¦ÀíµÄ¡£Ðí¶à³Ö¾ÃÐÔ»úÖÆÒÔ¹ØϵµÄ·½·¨¶ø²»ÊÇÃæÏò¶ÔÏó·½·¨´æ´¢Êý¾Ý¡£¼´£¬Êý¾Ý´æ´¢ÔÚÓÉ°üº¬×ֶεļǼ×é³ÉµÄ±íÖУ¬¶ø²»ÊǴ洢Ϊ×Ô°üº¬¶ÔÏó(ÕâЩ¶ÔÏóÓµÓÐÄÚ²¿Êý¾ÝºÍ¶ÔÆäËü¶ÔÏóµÄÒýÓ㬶øÆäËü¶ÔÏóÒ²ÓµÓÐÄÚ²¿Êý¾ÝºÍÒýÓÃ)¡£½«ÃæÏò¶ÔÏóµÄ±íʾת»»³ ......
꿅᣼ http://blog.csdn.net/justinavril/archive/2008/08/06/2775767.aspx
import
java.io.*;
public
class
FileToString {
public
static
String readFile(String fileName)  ......
1. JVMÄÚ´æ¶Î·ÖÅä¼°Æô¶¯²ÎÊý£º
J2EE·þÎñÆ÷µÄÄÚ´æ×é³É£º
? Java¶Ñ£ºÎÒÃǵijÌÐòºÍ¶ÔÏó¶¼ÔÚÕâ¸ö¶Ñ½øÐйÜÀí
? C¶Ñ£ºµ±ÒýÓõ½Ò»Ð©NativeµÄ¶ÔÏó£¬ÈçÍøÂç·ÃÎÊ¡¢OCI·½Ê½µÄÊý¾Ý¿âÁ¬½ÓµÈ¶¼ÔÚC¶ÑÀï½øÐйÜÀí
Java¶ÑµÄÃèÊö£º
ÈçÏÂͼ
ÄÚ´æÓÉ Perm ºÍ Heap ×é³É. ÆäÖÐ
Heap = {Old + young = { Eden , from, to } }
? You ......
ADFÖлñµÃÊý¾Ý¿âÁ¬½Ó£¬¶ÁÈ¡xmlÎļþµÄÊý¾Ý£¬²¢½«Æäдµ½Êý¾Ý¿âÖУº
public static void main(String[] argv) throws Exception {
//»ñµÃÇý¶¯
Class driverClass = Class.forName("oracle.jdbc.OracleDriver");
&nb ......