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

JavaÖÐÀàÓëÀàµÄ¹Øϵ

ÀàÓëÀàÖ®¼ä´æÔÚÒÔϹØϵ£º
1¡¢ ·º»¯(Generalization)
ºÜ¼òµ¥£¬¾ÍÊÇÎÒÃdz£ËµµÄ¼Ì³Ð¡£ÊÇ˵×ÓÀà»ñµÃ¸¸ÀàµÄ¹¦ÄܵÄͬʱ£¬»¹¿ÉÒÔÀ©Õ¹×Ô¼ºµÄ¹¦ÄÜ¡£
Èçͼ:
Java´úÂëÖбíÏÖΪ£ºextends ºÍ implements
2¡¢ ÒÀÀµ(Dependency)
Á½¸öÏà¶Ô¶ÀÁ¢µÄßËßË(AºÍB)£¬µ±A¸ºÔð¹¹ÔìBʱ£¬AÓëBÐγÉÒÀÀµ¹Øϵ£¬¼´AʹÓÃB¡£
Èçͼ£º
Java´úÂëÖеıíÏÖΪ¾Ö²¿±äÁ¿£¬·½·¨µÄ²ÎÊý£¬ÒÔ¼°¶Ô¾²Ì¬·½·¨µÄµ÷ÓÃ
3¡¢ ¹ØÁª(Association)
   Á½¸öÏà¶Ô¶ÀÁ¢µÄßËßË(AºÍB)£¬µ±A¶ÔÏó³ÖÓÐB¶ÔÏóµÄʱºò£¬ÐγɹØÁª¹Øϵ¡£
¹ØÓÚ·ÖΪÓÐÁ½ÖÖÌØÊâµÄÐÎʽ£¬¾ÛºÏ£¨Aggregation£©ºÍ×éºÏ£¨Composition£©£¬¾ÛºÏºÍ×éºÏÖ»ÓиÅÄîÉϵÄÇø±ð£¬ÔÚJavaÖеĴúÂëʵÏÖÉÏûÓÐÇø±ð¡£
¾ÛºÏ£ºÖ¸µÄÊÇÕûÌåÓ벿·ÖµÄ¹Øϵ£¬Èçͼ£º
×éºÏ£º±íʾÀàÖ®¼äÕûÌåºÍ²¿·ÖµÄ¹Øϵ£¬µ«ÊÇ×éºÏ¹ØϵÖв¿·ÖºÍÕûÌå¾ßÓÐͳһµÄÉú´æÆÚ,¼´ÕûÌå¶ÔÏó²»´æÔÚ£¬²¿·Ö¶ÔÏóÒ²½«²»´æÔÚ£¬Èçͼ£º
Java´úÂëÖУ¬±íÏÖΪ³ÉÔ±±äÁ¿¡£
4¡¢ ×ܽá
ÔÚJavaÖУ¬Ó¦¸Ã¾¡Á¿ÓÅÏÈʹÓÃ×éºÏ£¬¶ø²»ÊǼ̳У¬ÒòΪ¼Ì³Ð»áʹµÃÀà¹Øϵ¹ýÓÚ¸´ÔÓ»¯£¬ÆÆ»µÁË·â×°ÐÔ£¬Ê¹ÓÃ×éºÏÒ»Ñù¿ÉÒÔ»ñµÃÒÑÓÐÀàµÄ¹¦ÄÜ£¬¶øÇÒ»áʹÐÂÀà¸ü¼ÓÎȹ̡£
ʵ¼ÊÉÏ£¬´ÓÒÀÀµ -----¡µ¾ÛºÏ--------¡µ×éºÏ£¬ÀàÓëÀàÖ®¼äµÄ¹Øϵ¸ü¼Ó½ôÃÜ£¬»¥ÏàÖ®¼äµÄÓ°ÏìÔ½À´Ô½´ó£¬ÆäʵÎÒÃÇƽ³£±È½ÏÉÙÈ¥Çø·ÖÕâЩ¹Øϵ£¬¶øÇÒÊÂʵÉÏÕⶫÎ÷µÄ¶¨Ò岻̫ºÃÀí½â£¬ËùÒԿ϶¨»áµ¼ÖÂÈÏʶÉϵÄÆ«²î£¬ËùÒÔÎÒÃÇʹÓÃÕâЩ¶«Î÷µÄʱºò£¬¾¡Á¿¿¿½ü´ó¼Ò¶¼ÈÏͬµÄ×ö·¨£¬ÕâÑùÈÝÒ×ÈñðÈËÀí½â
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/fantian830211/archive/2007/08/21/1753520.aspx


Ïà¹ØÎĵµ£º

java×Ô¶¨Òå±êÇ©

Èý²½£º
Ò»¡¢×Ô¶¨Òå±êǩʵÏÖÀࣺ myTags.java;
¶þ¡¢×Ô¶¨Òå±êÇ©¿âÎļþ£¨TLD£©: myTags.tld;
Èý¡¢Ò»¸öJSPÒ³Ã棺Ëæ±ãдÁË;
Ê×ÏÈmyTags.java
package com.tags;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
public class myTags extends ......

ÑÝʾʹÓà JACOB : Java COM Bridge ²Ù×Ý Word Îĵµ

ԭʼURL£º http://blog.donews.com/dukejoe/archive/2010/04/28/1575574.aspx
package cn.com.hrbb.samples;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
/**
*
* ÑÝʾʹÓà JACOB : Java COM Bridge ²Ù×Ý Word Îĵµ
*
* ×÷Õߣº¸ßºêΰ(DukeJoe)
......

Ò»¸öJAVAÎļþ¼ÓÃÜ´úÂë

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
/**
ÎļþÃû£ºFileEncrypter.java
JDK£º1.40ÒÔÉÏ
˵Ã÷£ºÎļþ¼ÓÃÜ
¼ÓÃÜ·½·¨£ºÈýÖØDES¼ÓÃÜ
¼ÓÃܹý³Ì£º¶ÔÑ¡ÖеÄÎļþ¼ÓÃܺóÔÚͬÎļ ......

Java²¢·¢±à³Ì ÉÏ

Ò»¡¢Ïß³Ì
1 Ï̵߳Ĵ´½¨
´´½¨Ïß³Ìͨ³£ÓÐÁ½ÖÖ·½·¨: 1) À©Õ¹ThreadÀàʵÏÖÏ̵߳Ĵ´½¨ÊÇ×î³£ÓÃÒ²ÊÇ×îÖ±½ÓµÄÒ»ÖÖ·½·¨£¬Í¨¹ý¼Ì³ÐÀàThreadʵÏÖÏß³ÌÌ壻2) ͨ¹ýʵÏÖRunnable½Ó¿ÚʵÏÖÏß³ÌÌå¡£
2 ThreadÀàµÄ¼¸ÖÖ¹¹Ô캯Êý
    1) Thread()
    2) Thread(Runnable target)
    3) T ......

java»ñµÃÏîĿ·¾¶

    /**
  * »ñÈ¡·þÎñÆ÷µÄwebµØÖ·
  * @return
  */
 private String getWebPath(){ 
  
   String _tempStr = Thread.currentThread().getContextClassLoader().getResource("").toString();
  
   _tempStr=_tempStr.substring ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ