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

Ïê½âJava ÖеÄÀà¼ÓÔØ»úÖÆ

Ê×ÏÈÃ÷È·ÏÂÀà¼ÓÔصĶ¨Ò壬Àà¼ÓÔØʵ¼ÊÉϾÍÊǽ«java classÎļþ¼ÓÔص½java ÐéÄâ»úÖУ¬¸ù¾ÝJVM¹æ·¶µÄ¶¨Ò壬һ°ã·ÖΪ2ÖÖÀàÐ͵ÄÀà¼ÓÔØ£¬Ò»ÖÖÊÇÆô¶¯Àà¼ÓÔØÆ÷£¬ÁíÍâÒ»ÖÖÊÇÓû§×Ô¶¨ÒåÀà¼ÓÔØÆ÷¡£
Ò» Æô¶¯Àà¼ÓÔØÆ÷¡£
Æô¶¯Àà¼ÓÔØÆ÷Ò²ÓÐÒÔÏÂÈýÖÖ£ºBootstrap ClassLoader¡¢AppClassLoaderºÍExtClassLoader,ÕâÈýÖÖclassloaderÔÚjavaÐéÄâ»úÆô¶¯Ê±»áÏà¼Ì´´½¨£¬Ê×ÏÈÆô¶¯Ê±¼ÓÔØBootstrapClassLoader£¬È»ºóBootstrapClassLoader¼ÓÔØExtClassLoader£¬È»ºóExtClassLoader¼ÓÔØAppClassLoader£¬ËûÃÇÖ®¼äÊÇÓɸ¸×Ó¹ØϵµÄ£¬Ò²¾ÍÊÇͨ¹ý¸¸µÄclassloader¼ÓÔØ×Óclassloader.ϱ߷ֱð½éÉÜÏÂÕâÈýÖÖ²»Í¬µÄclassloader¡£
BootstrapClassLoader±È½ÏÌØÊ⣬ʵ¼ÊÉÏËü²»ÊÇ java.lang.ClassLoaderµÄ×ÓÀà,ÊÇC++±àдµÄ£¬javaÐéÄâ»úÆô¶¯Ê±µÚÒ»¸öÖ´ÐУ¬ËüÊÇjavaÐéÄâ»ú×Ô´øµÄ×°ÔØÆ÷£¬ÓÃÀ´×°ÔغËÐÄÀà¿â£¬Ò²¾ÍÊÇjava.lang.*,ÒòΪÊÇc++±àдµÄ£¬ËùÒÔÔÚÔËÐÐʱ£¬ÎÒÃÇÎÞ·¨»ñÈ¡BootstrapClassLoaderµÄÈκÎÐÅÏ¢¡£
ExtClassLoaderµÄ¸¸Ç×ÊÇBootstrapClassLoader£¬µ«ÊÇÔÚjavaÔËÐÐʱ»·¾³ÖУ¬ÓÉÓÚÎÞ·¨»ñÈ¡BootstrapClassLoaderµÄÈκÎÐÅÏ¢£¬Òò´ËÎÒÃÇͨ¹ý»ñÈ¡ExtClassLoaderµÄparentµÄ·½Ê½²é¿´Æ丸Ç×£¬»á·¢Ïֵõ½ÊÇnull¡£ExtClassLoaderµÄÖ°ÔðÊǸºÔð¼ÓÔØJREµÄÀ©Õ¹Ä¿Â¼£¨JAVA_HOME/jre/lib/ext»òÕßÓÉjava.ext.dirsϵͳÊôÐÔÖ¸¶¨µÄ£©ÖÐJARµÄÀà°ü¡£
AppClassLoaderµÄ¸¸Ç×ÊÇExtClassLoader£¬ËüµÄÖ÷ÒªÖ°ÔðÊǼÓÔØÓû§Ó¦ÓÃϵͳËùÐèÒªµÄÀ࣬ÈçÓû§ÏµÍ³×Ô¼º±àдµÄclass£¬»òÓû§ÏµÍ³µ¼ÈëµÄÆäËûjar¼Ü°ü¡£
 
ϱßÓôúÂë²âÊÔÏÂÕâÈýÖÖÀà¼ÓÔØÆ÷£º
/**
 * ²âÊÔÀà¼ÓÔØ»úÖÆ
 * @author Administrator
 *
 */
public class TestLoader
{
    /**
     * ·Ö±ð¼ÓÔØÈýÖÖ²»Í¬ÀàÐ͵ÄclassÀà¼ìÑéÆäÓõ½µÄ¼ÓÔØÆ÷¡£
     * @param args
     * @throws Exception
     */
    public static void main(String[] args) throws Exception
    {
       // »ñÈ¡AppClassloader
       ClassLoader appClassloader = ClassLoader.getSystemClassLoader();
       // »ñÈ¡ExtClassloader£¬Ò²¾ÍÊÇAppClassloaderµÄ¸¸Ç×
       ClassLoa


Ïà¹ØÎĵµ£º

µÚÈýƪ£ºJAVA×Ö·û±àÂëϵÁÐÈý£ºJavaÓ¦ÓÃÖеıàÂëÎÊÌâ

1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾­²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£
2. ±àÂë»ù±¾ÖªÊ ......

Google Maps API in Java ME

Here is a simple library to query Google Maps with the following features:
geocode addresses to their geographic coordinates
retrieve static images with given custom size, format and zoom
To see a live sample of this API, you can check here: Java ME Google Maps API sample MIDlet
Contents
[h ......

¸øJAVAÐÂÊÖµÄÒ»·âÐÅ

Ç×°®µÄ Java ÐÂÊÖÃÇ£º
ºÜ¸ßÐËÄãÃÇÔ¸ÒâÀ´ÕâÀﹲͬѧϰ£¬
Java Õâ¸öÓïÑÔ£¬ÒѾ­²»ÔÙÊÇÓïÑÔÁË£¬Ëû¹´ÀÕ³öÒ»¸ö¿ª·ÅʽµÄ¿ª·¢»·¾³£¬
»ù±¾ÉÏ java.sum.com ºÜ´ÖÂÔµØ°Ñ Java ·ÖΪÈý¸ö²¿·Ö£º
(1)  J2SE ( Java 2 Standard Edition )
(2)  J2EE ( Java 2 Enterprise Edition )
(3)  J2ME ( Java 2 Micro Edition ) ......

javaҹδÃß

          ×Ô´ÓѧϰJavaÒÔÀ´ÒѾ­Ò»ÄêÓÐÓàÁË£¬¶ÔJava»¹Ö»Êdzõ½×¶ÎµÄÁ˽⣬¶¼¹ÖÔÚѧУµÄʱºòÌ°ÍæûÓÐÓÐЧµÄÀûÓÃʱ¼ä£¬ÏÖÔÚÔÚÒ»¸öÅàѵѧУѧϰJava£¬ÏÖÔÚ¾ÍÒª×öÏîÄ¿ÁË»¹ÊÇʲô¶¼²»¶®£¬»¹ºÃÓÐCsdn¡£
      ÔÚCsdnµÄÈÕ×ÓÀï½ÐÎÒÕÒµ½Á˼ҵĸоõ£¬µÃµ½Á輆 ......

Java+MysqlµÄÊý¾Ý¿â²éÕÒʵÏÖ


public class select {
 public List XiuGai_select(String keyword){
  List list=new ArrayList();
        Connection conn = null;
  Statement stmt = null;
  String sql=null;
  ResultSet res = null;
  get ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ