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

ÉîÈë̽ÌÖ Java Àà¼ÓÔØÆ÷

Àà¼ÓÔØÆ÷ÊÇ Java ÓïÑÔµÄÒ»¸ö´´Ð£¬Ò²ÊÇ Java ÓïÑÔÁ÷ÐеÄÖØÒªÔ­ÒòÖ®Ò»¡£ËüʹµÃ Java Àà¿ÉÒÔ±»¶¯Ì¬¼ÓÔص½ Java ÐéÄâ»úÖв¢Ö´ÐС£Àà¼ÓÔØÆ÷´Ó JDK 1.0 ¾Í³öÏÖÁË£¬×î³õÊÇΪÁËÂú×ã Java Applet µÄÐèÒª¶ø¿ª·¢³öÀ´µÄ¡£Java Applet ÐèÒª´ÓÔ¶³ÌÏÂÔØ Java ÀàÎļþµ½ä¯ÀÀÆ÷Öв¢Ö´ÐС£ÏÖÔÚÀà¼ÓÔØÆ÷ÔÚ Web ÈÝÆ÷ºÍ OSGi Öеõ½Á˹㷺µÄʹÓá£Ò»°ãÀ´Ëµ£¬Java Ó¦ÓõĿª·¢ÈËÔ±²»ÐèÒªÖ±½ÓͬÀà¼ÓÔØÆ÷½øÐн»»¥¡£Java ÐéÄâ»úĬÈϵÄÐÐΪ¾ÍÒѾ­×ã¹»Âú×ã´ó¶àÊýÇé¿öµÄÐèÇóÁË¡£²»¹ýÈç¹ûÓöµ½ÁËÐèÒªÓëÀà¼ÓÔØÆ÷½øÐн»»¥µÄÇé¿ö£¬¶ø¶ÔÀà¼ÓÔØÆ÷µÄ»úÖÆÓÖ²»ÊǺÜÁ˽âµÄ»°£¬¾ÍºÜÈÝÒ×»¨´óÁ¿µÄʱ¼äÈ¥µ÷ÊÔ ClassNotFoundException ºÍ NoClassDefFoundError µÈÒì³£¡£±¾ÎĽ«Ïêϸ½éÉÜ Java µÄÀà¼ÓÔØÆ÷£¬°ïÖú¶ÁÕßÉî¿ÌÀí½â Java ÓïÑÔÖеÄÕâ¸öÖØÒª¸ÅÄî¡£ÏÂÃæÊ×ÏȽéÉÜһЩÏà¹ØµÄ»ù±¾¸ÅÄî¡£
Àà¼ÓÔØÆ÷»ù±¾¸ÅÄî
¹ËÃû˼Ò壬Àà¼ÓÔØÆ÷£¨class loader£©ÓÃÀ´¼ÓÔØ Java Àൽ Java ÐéÄâ»úÖС£Ò»°ãÀ´Ëµ£¬Java ÐéÄâ»úʹÓà Java ÀàµÄ·½Ê½ÈçÏ£ºJava Ô´³ÌÐò£¨.java Îļþ£©ÔÚ¾­¹ý Java ±àÒëÆ÷±àÒëÖ®ºó¾Í±»×ª»»³É Java ×Ö½Ú´úÂ루.class Îļþ£©¡£Àà¼ÓÔØÆ÷¸ºÔð¶ÁÈ¡ Java ×Ö½Ú´úÂ룬²¢×ª»»³É java.lang.Class ÀàµÄÒ»¸öʵÀý¡£Ã¿¸öÕâÑùµÄʵÀýÓÃÀ´±íʾһ¸ö Java Àࡣͨ¹ý´ËʵÀýµÄ newInstance()·½·¨¾Í¿ÉÒÔ´´½¨³ö¸ÃÀàµÄÒ»¸ö¶ÔÏó¡£Êµ¼ÊµÄÇé¿ö¿ÉÄܸü¼Ó¸´ÔÓ£¬±ÈÈç Java ×Ö½Ú´úÂë¿ÉÄÜÊÇͨ¹ý¹¤¾ß¶¯Ì¬Éú³ÉµÄ£¬Ò²¿ÉÄÜÊÇͨ¹ýÍøÂçÏÂÔصġ£
»ù±¾ÉÏËùÓеÄÀà¼ÓÔØÆ÷¶¼ÊÇ java.lang.ClassLoader ÀàµÄÒ»¸öʵÀý¡£ÏÂÃæÏêϸ½éÉÜÕâ¸ö Java Àà¡£
java.lang.ClassLoader Àà½éÉÜ
java.lang.ClassLoader ÀàµÄ»ù±¾Ö°Ôð¾ÍÊǸù¾ÝÒ»¸öÖ¸¶¨µÄÀàµÄÃû³Æ£¬ÕÒµ½»òÕßÉú³ÉÆä¶ÔÓ¦µÄ×Ö½Ú´úÂ룬Ȼºó´ÓÕâЩ×Ö½Ú´úÂëÖж¨Òå³öÒ»¸ö Java À࣬¼´ java.lang.Class ÀàµÄÒ»¸öʵÀý¡£³ý´ËÖ®Í⣬ClassLoader »¹¸ºÔð¼ÓÔØ Java Ó¦ÓÃËùÐèµÄ×ÊÔ´£¬ÈçͼÏñÎļþºÍÅäÖÃÎļþµÈ¡£²»¹ý±¾ÎÄÖ»ÌÖÂÛÆä¼ÓÔØÀàµÄ¹¦ÄÜ¡£ÎªÁËÍê³É¼ÓÔØÀàµÄÕâ¸öÖ°Ôð£¬ClassLoader ÌṩÁËһϵÁеķ½·¨£¬±È½ÏÖØÒªµÄ·½·¨Èç ±í 1 Ëùʾ¡£¹ØÓÚÕâЩ·½·¨µÄϸ½Ú»áÔÚÏÂÃæ½øÐнéÉÜ¡£
±í 1. ClassLoader ÖÐÓë¼ÓÔØÀàÏà¹ØµÄ·½·¨
·½·¨ËµÃ÷
getParent()
·µ»Ø¸ÃÀà¼ÓÔØÆ÷µÄ¸¸Àà¼ÓÔØÆ÷¡£
loadClass(String name)
¼ÓÔØÃû³ÆΪ name µÄÀ࣬·µ»ØµÄ½á¹ûÊÇ java.lang.Class ÀàµÄʵÀý¡£
findClass(String name)
²éÕÒÃû³ÆΪ name µÄÀ࣬·µ»ØµÄ½á¹ûÊÇ java.lang.Class ÀàµÄʵÀý¡£
findLoadedClass(String name)
²éÕÒÃû³ÆΪ nam


Ïà¹ØÎĵµ£º

Java³ÌÐò£¬Ò»¸öʵÏÖEnumerationµÄ×éºÏÀà

import java.util.Enumeration;
public class CipherTest implements Enumeration {
private int N;
private int c[], k;
private Object[] objs;
public CipherTest(Object[] items) {
N = items.length;
c = new int[N + 1];
for (int i = 0; i <= N; i++)
c[i] = i;
objs = items;
k = 1 ......

΢ÈíµÄпª·¢¹¤¾ßÄÜսʤjavaô

Ò»Ö±ÒÔÀ´¶¼ÊÇ΢ÈíµÄËÀÖÒ£¬ÎÒÒ»Ö±¹ÌÖ´µÄʹÓÃ×Å΢ÈíµÄ²úÆ·¡£´Ó2001Äêµ½½ñÄê2010Ä꣬ÒѾ­¶È¹ýÁË9ÄêµÄʱ¹â£¬¿´×ÅËüµÄ½ø²½£¬Ò²¿´µ½ÁËjava¶ÔËüµÄ²Ïʳ¡£´Ó×î³õ´ó¼Ò¶Ô΢ÈíÊÇ·ñÒ»Ö»¶À´ó£¬µ½ÏÖÔÚÎÒµ£ÐÄvsϵÁвúÆ·ÊÇ·ñ±»javaËùÍÌû¡£
Îҵĵ£ÐIJ»ÊÇûÓеÀÀí£¬ÉõÖÁÎÒΪÁ˼á³ÖÎÒµÄ΢Èí·Ï߶ø·ÅÆúÁËÏÖÔڵŤ×÷¡£
ÔÚ×öСÐÍÏîÄ¿ºÍ×ÀÃæÐÍÏîÄ ......

java×÷Òµ01

package homework01;
public class TestWhile {

public static double factorial(int n) //Çó½×³Ëº¯Êý
{
if(n==0) return 1;
else return n* factorial(n-1);
}

public static void main(String[] args) {
System.out.println(factorial(170));//test:ÄÜ´òÓ¡³öÀ´£ ......

javaÖеÄÏàµÈÐÔ×ܽá

       ѧjavaÓжÎʱ¼äÁË£¬ÒÔÏÂÊǸöÈ˵ÄÒ»µãÐĵÃÌå»á£¬Ï£ÍûÄܹ»°ïÖúÄÇЩ¸Õ¿ªÊ¼±à³ÌµÄͬ־ÃÇ¡£
      ¼¸ÌìÇ°£¬Ò»Í¬Ñ§ÈÃÎÒ°ïæ¿´ËûµÄ³ÌÐòµ½µ×³öÏÖʲôÎÊÌ⣬´úÂë±È½ÏÂÒ£¬Ò²Ã»ÓÐ×¢ÊÍ£¬ÎÒ¿´Á˺Ü
³¤Ò»¶Îʱ¼ä¾¹ÊÇÕÒ²»µ½ÎÊÌâËùÔÚ¡£³ÌÐò´óÌåÊÇÕâÑùµÄ£¬ÓÐÒ»¶ÎÎı¾taxt,´ÓÖ ......

JavaÍøÂç±à³Ìѧϰ±Ê¼ÇÖ®Socket(Ò»)

    ÔÚ¿Í»§/·þÎñÆ÷ͨÐÅģʽÖУ¬¿Í»§¶ËÖ÷¶¯´´½¨Óë·þÎñÆ÷Á¬½ÓµÄSocket£¬·þÎñÆ÷ÊÕµ½¿Í»§¶ËµÄÁ¬½ÓÇëÇó£¬Ò²´´½¨ÁËÓë¿Í»§¶ËÁ¬½ÓµÄSocket¡£
    ¿Í»§¶ËÖ÷¶¯´´½¨Socketʱºò£¬ÐèÒª×öÏÂÃæһЩÊÂÇ飺
    1. ¹¹ÔìSocket.
    2. É趨µÈ´ý½¨Á¢Á¬½ÓµÄ³¬Ê±Ê±¼ä
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ