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

java³éÏóÀàºÍ³éÏó·½·¨

³éÏóÀà¾ÍÊDz»ÄÜʹÓÃnew·½·¨½øÐÐʵÀý»¯µÄÀ࣬¼´Ã»ÓоßÌåʵÀý¶ÔÏóµÄÀà¡£³éÏóÀàÓеãÀàËÆ“Ä£°å”µÄ×÷Óã¬Ä¿µÄÊǸù¾ÝÆä¸ñʽÀ´´´½¨ºÍÐÞ¸ÄеÄÀà¡£¶ÔÏó²»ÄÜÓɳéÏóÀàÖ±½Ó´´½¨£¬Ö»¿ÉÒÔͨ¹ý³éÏóÀàÅÉÉú³öеÄ×ÓÀ࣬ÔÙÓÉÆä×ÓÀàÀ´´´½¨¶ÔÏó¡£µ±Ò»¸öÀà±»ÉùÃ÷Ϊ³éÏóÀàʱ£¬ÒªÔÚÕâ¸öÀàÇ°Ãæ¼ÓÉÏÐÞÊηûabstract¡£
    ÔÚ³éÏóÀàÖеijÉÔ±·½·¨¿ÉÒÔ°üÀ¨Ò»°ã·½·¨ºÍ³éÏó·½·¨¡£³éÏó·½·¨¾ÍÊÇÒÔabstractÐÞÊεķ½·¨£¬ÕâÖÖ·½·¨Ö»ÉùÃ÷·µ»ØµÄÊý¾ÝÀàÐÍ¡¢·½·¨Ãû³ÆºÍËùÐèµÄ²ÎÊý£¬Ã»Óз½·¨Ì壬Ҳ¾ÍÊÇ˵³éÏó·½·¨Ö»ÐèÒªÉùÃ÷¶ø²»ÐèҪʵÏÖ¡£µ±Ò»¸ö·½·¨Îª³éÏó·½·¨Ê±£¬Òâζ×ÅÕâ¸ö·½·¨±ØÐë±»×ÓÀàµÄ·½·¨ËùÖØд£¬·ñÔòÆä×ÓÀàµÄ¸Ã·½·¨ÈÔÈ»ÊÇabstractµÄ£¬¶øÕâ¸ö×ÓÀàÒ²±ØÐëÊdzéÏóµÄ£¬¼´ÉùÃ÷Ϊabstract¡£
    ³éÏóÀàÖв»Ò»¶¨°üº¬³éÏó·½·¨£¬µ«ÊÇ°üº¬³éÏó·½·¨µÄÀàÒ»¶¨Òª±»ÉùÃ÷Ϊ³éÏóÀà¡£³éÏóÀà±¾Éí²»¾ß±¸Êµ¼ÊµÄ¹¦ÄÜ£¬Ö»ÄÜÓÃÓÚÅÉÉúÆä×ÓÀà¡£³éÏóÀàÖпÉÒÔ°üº¬¹¹Ôì·½·¨£¬µ«Êǹ¹Ôì·½·¨²»Äܱ»ÉùÃ÷Ϊ³éÏó¡£
    ³éÏóÀ಻ÄÜÓÃfinalÀ´ÐÞÊΣ¬¼´Ò»¸öÀ಻ÄܼÈÊÇ×îÖÕÀàÓÖÊdzéÏóÀà¡£
    abstract²»ÄÜÓëprivate¡¢static¡¢final¡¢native²¢ÁÐÐÞÊÎͬһ¸ö·½·¨¡£
    ³ÌÐò¾ÙÀý£º
abstract class Animal    //¶¨Òå³éÏóÀà
{
    String str;
    Animal(String s)     //¶¨Òå³éÏóÀàµÄÒ»°ã·½·¨
   {
        str=s;
   }
    abstract void eat();      //¶¨Òå³éÏó·½·¨
}
class Horse extends Animal     //¶¨Òå¼Ì³ÐAnimalµÄ×ÓÀà
{  
    String str;
    Horse(String s)
   {
      super(s);      //µ÷Óø¸ÀàµÄ¹¹Ôì·½·¨
   }
    void eat()      //ÖØд¸¸ÀàµÄ³éÏó·½·¨
   {     
      System.out.println("Âí³Ô²ÝÁÏ£¡");
   }
}
class Dog extends Animal
{
    String str;
    Dog(String s)
   {
   &nb


Ïà¹ØÎĵµ£º

javaÑéÖ¤Âë»ã×Ü

1.Éú³ÉgifͼƬ¸ñʽµÄ
package com.cssweb.common.util;
import java.io.*;
import java.util.*;
import com.sun.image.codec.jpeg.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.awt.*;
import java.awt.image.*;
/*
* ¹¦ÄÜ£ºµ÷ÓÃAuthServlet¿ÉÒÔÉú³ÉÒ»¸öÑéÖ¤ÂëͼƬ,ͼƬµÄ¿í¶ÈºÍ¸ß¶È¿ÉÒ ......

ËÄÄêjavaÑз¢ ѰǶÈëʽְ룬´ýÓö2K¼´¿É£¬±±¾©

±¾È˾ãËÄÄêÑз¢¾­Ñ飨javaµÄ£©
Ë­¸øÎÒÍƼö·ÝǶÈëʽcְ룬cÓïÑÔһֱûÂäÏ£¬Ñ§µÄ»¹ÐС£¡£¡£ ¹¤×Ê¿ªÎÒ2k¾ÍÐУ¡
ֻΪ³É¹¦´òÈëǶÈëʽÊг¡¡£¡£¡£¸ø¸ö»ú»á°É¡£¡£
ÎÒÕæµÄÊÇÌ«ÏëºÍÄãÃÇ×öͬÐÐÀ²£¡
ÓÐÒâÏòµÄ¿ÉÒÔÁªÏµÎÒ¡£¡£ ÎÒ²»Ìô´ýÓö£¬¶Ô¹¤×÷¾ÍÒ»¸öÒªÇó£¬Ç¶Èëʽ¿ª·¢¡£¡£¡£ ÎÒÓеģ¬¾ÍÊÇ4ÄêµÄjavaÑз¢¾­ÑéºÍc»ù´¡¡£¡£¡£ ÌáÇ ......

java »º´æ¿ò¼Üjava caching systemʹÓÃʾÀý

  ҪʹÓÃjava caching system£¬ÐèÒªÏÂÃæÕ⼸¸ö°ü£ºjcs.jar£¬concurrent.jar,commons-logging.jar, commons-lang.jar,commons-collection.jarÕ⼸¸ö°ü£¬ÔÚjava¹¤³ÌÀïÃ棬
Ê×ÏÈн¨Ò»¸öʹÓÃjcsµÄÅäÖÃÎļþ£ºcache.ccf£¬ÎļþÃû²»Äܸġ£
# DEFAULT CACHE REGION
# sets the default aux value for any non configured ca ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ