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

JAVA(¶þ)


Java   ÔÓ̸£¨Èý£© 
        ÕâÒѾ­±ÊÕßдµÄµÚÈýƪJavaÔÓ¼ÇÁË£¬ÇìÐÒÇ°Á½ÆªÒ»Ö±µÃµ½ÂÛ̳ÅóÓÑÃǵÄÖ§³Ö¹ÄÀø£¬»¹Íû´ó¼Ò¼ÌÐøÖ¸Õý²»×ãÖ®´¦¡£±ÊÕßÒ²Ò»Ö±¿ÊÍûͨ¹ýÕâÑù·½Ê½ÇåÐѵÄ×ÔÉó£¬À´Ñ°ÕÒ×Ô¼º¼¼ÊõÉϵIJ»×ãÖ®´¦£¬Ï£ÍûºÍ¹²Í¬°®ºÃJavaµÄͬÈÊÃÇÒ»ÆðÌá¸ß¡£ 
        Ç°Á½´Î·Ö±ð½²ÊöÁ˹ØÓÚjvm¡¢jdk¡¢jre¡¢collection¡¢classLoaderºÍһЩDesign   PatternµÄ×ÔÎÒÀí½â¡£Õâ´ÎÈÔÈ»²»×¼±¸¿ªÊ¼¹ý¶Éµ½j2eeÖУ¬ÒòΪ¾õµÃ»¹ÓÐһЩËöËéµÄj2seµÄÎÊÌâûÓÐ×ܽáÍê±Ï¡£ 
     
          1£®   ¹ØÓÚObjectÀàÀí½â 
        ´ó¼Ò¶¼ÖªµÀObjectÊÇËùÓÐJavaÀàµÄ»ùÀ࣬   Òâζ×ÅËùÓеÄJavaÀ඼»á¼Ì³ÐÁËObjectµÄ11¸ö·½·¨¡£½¨Òé´ó¼ÒÈ¥¿´¿´ObjectµÄ   11¸ö³ÉÔ±º¯ÊýµÄÔ´´úÂ룬¾Í»áÖªµÀĬÈϵÄʵÏÖ·½Ê½¡£±ÈÈçequals·½·¨£¬Ä¬ÈÏʵÏÖ¾ÍÊÇÓÃ"=="À´±È½Ï£¬¼´Ö±½Ó±È½ÏÄÚ´æµØÖ·£¬·µ»Øtrue   »òÕß   false¡£¶øtoString()·½·¨£¬·µ»ØµÄ´®×é³É·½Ê½ÊÇ?? 
        "getClass().getName()   +   "@"   +   Integer.toHexString(hashCode())" 
        Æäʵ²»ÓÃÎÒ¹ý¶àµÄ½âÊÍ£¬´ó¼Ò¶¼ÄÜ¿´¶®Õâ¸ö´®µÄ×é³É¡£½ÓÏÂÀ´ÔÙ¿´¿´hashCode()£º 
        public   native   int   hashCode()£» 
       
        ÓÉÓÚÊÇnative·½·¨£¬¸úOSµÄ´¦Àí·½Ê½Ïà¹Ø£¬Ô´´úÂëÀï½ö½öÓÐÒ»¸öÉùÃ÷°ÕÁË¡£ÎÒÃÇÓÐÐËȤµÄ»°ÍêÈ«¿ÉÒÔÈ¥ÉËüµÄhashCodeµ½µ×ÊÇÓÉOSÔõôÑù²úÉúµÄÄØ£¿µ«±ÊÕß½¨Òé×îÖØÒªµÄ»¹ÊÇÏȼÇסʹÓÃËüµÄ¼¸ÌõÔ­Ôò°É£¡Ê×ÏÈÈç¹ûequals()·½·¨ÏàͬµÄ¶ÔÏó¾ßÓÐÏàͨµÄhashCode£¬µ«equals   ()¶ÔÏó²»ÏàͨµÄʱºò²¢²»±£Ö¤hashCode()·½·¨·µ»Ø²»Í¬µÄÕûÊý¡£¶øÇÒÏÂÒ»´ÎÔËÐÐͬһ¸ö³ÌÐò£¬Í¬Ò»¸ö¶ÔÏóδ±Ø»¹Êǵ±³õµÄÄǸöhashCode()   Ŷ¡£ 
        ÆäÓàµÄ·½·¨


Ïà¹ØÎĵµ£º

Java GUI

Ò»¡¢BorderLayoutTest.java
package com.briup.md08;
import java.awt.*;
import javax.swing.*;
/*BorderLayoutÌصã
1¡¢×é¼þµÄ´óСÓÉÈÝÆ÷¾ö¶¨
2¡¢ÈÝÆ÷±»»®·ÖΪ5¸öÇøÓò£¬Ã¿¸öÇøÓòÖ»ÄÜÖ±½Ó¼ÓÈë3¸ö×é¼þ
3¡¢×é¼þ¼ÓÈëµÄλÖÃÐèÒªÖ¸¶¨£¬Ä¬ÈÏΪCENTER
4¡¢×é¼þÖ®¼äĬÈÏûÓмä϶
5¡¢Èç¹û³ýCENTER ÒÔÍâµÄÇøÓòûÓмÓÈë×é¼þ£¬Æ ......

Java Web Service Apache CXF ѧϰ

    ÏîÄ¿ÖÐÓõ½web service£¬ÓÚÊÇÑо¿Á˶þÌ죬ÏÂÃæ¸ù¾ÝÕâ¶þÌìÓõ½µÄ×ܽáһϣ¬µ±È»×î¶àµÄ»¹ÊǸù¾Ýapache cxf¹ÙÍøÎĵµhttp://cxf.apache.org ¿´Îĵµ£¬µ±È»Ò²²»ÊǶ¼¿´£¬Ö»¿´ÁË×Ô¼ºÐèÒªµÄ¡£
»ù´¡ÖªÊ¶Ñ§Ï°—— Hello Demo
    Hello Demo¿ªÊ¼ÁË£¡
µÚÒ»£¬Ð½¨HelloDemo Web ÏîÄ ......

java²¢·¢±à³Ì Executor¿ò¼Ü1


Executor¿ò¼ÜÊÇÖ¸java 5ÖÐÒýÈëµÄһϵÁв¢·¢¿âÖÐÓëexecutorÏà¹ØµÄһЩ¹¦ÄÜÀ࣬ÆäÖаüÀ¨Ï̳߳أ¬Executor£¬Executors£¬ExecutorService£¬CompletionService£¬Future£¬CallableµÈ¡£ËûÃǵĹØϵΪ£º
²¢·¢±à³ÌµÄÒ»ÖÖ±à³Ì·½Ê½ÊÇ°ÑÈÎÎñ²ð·ÖΪһЩÁеÄСÈÎÎñ£¬¼´Runnable£¬È»ºóÔÚÌá½»¸øÒ»¸öExecutorÖ´ÐУ¬Executor.execute(Runnal ......

Java¶ÔÏóÀàÐÍת»»µÄËĸö¾­Ñé


     Java¶ÔÏóÀàÐÍת»»Ê±Java¿ª·¢Öо­³£Óöµ½µÄ£¬±¾ÎÄÏòÄú½éÉÜJava¶ÔÏóÀàÐÍת»»µÄһЩ¼¼ÇɺÍ×¢ÒâÊÂÏ°üÀ¨ÏòÉÏתÐÍÓëÏòÏÂתÐͶ¼²Ù×÷ºÍÖ÷Òªµã¡£
Ò»¡¢ÏòÉÏתÐÍÓëÏòÏÂתÐÍ¡£
     ¶ÔÏóÀàÐ͵Äת»»ÔÚJavaÓïÑÔƽ̨Öо­³£Óöµ½£¬Ö÷Òª°üÀ¨ÏòÉÏתÐÍÓëÏòÏÂתÐͲÙ×÷¡£³ÌÐò¿ª·¢ÈËÔ±ÐèÒªÊìÁ· ......

Javaµ÷ÓÃϵͳÃüÁîѧϰ£¨Ò»£©

ºÇºÇ¡£¡£
import java.io.*;
class Exec{
public static void main(String []args)throws IOException{
//LinuxϵͳÃüÁls £­l
String command = "ls -l";
//»ñÈ¡µ±Ç°ÏµÍ³µÄ»·¾³¡£
Runtime rt = Runtime.getRuntime();
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ