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

JavaÖеĽӿÚ

  1.  ÔÚJavaÖУ¬Ò»¸öÀàÖ»Äܹ»ÓÐÒ»¸öÖ±½ÓµÄ¸¸À࣬µ«ÊÇÒ»¸öÀà¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú£¬Java²ÉÓÃÕâÖÖ·½Ê½ÊµÏÖ¶à¼Ì³Ð£»
  2. ½Ó¿ÚµÄ¸ÅÄ
      a.½Ó¿ÚÃ÷È·µØÃèÊöÁËϵͳ¶ÔÍâÌṩµÄËùÓзþÎñ£¬ÇåÎúµØ°ÑϵͳµÄʵÏÖϸ½ÚÓë½Ó¿Ú·ÖÀ룬ϵͳµÄʵÏÖϸ½ÚÓɽӿڵÄʵÏÖÀฺÔðʵÏÖ£¬½Ó¿Ú¸ºÔð¶ÔÍâÃèÊöϵͳÌṩµÄ·þÎñ£¬¶ÔÄÚÃèÊöϵͳӦ¸Ã¾ß±¸µÄ¹¦ÄÜ£»
      b.½Ó¿ÚºÍ³éÏóÀ඼²»Äܹ»±»ÊµÀý»¯£¬µ«ÊdzéÏóÀàÖпÉÒÔ°üº¬¾ßÌåµÄʵÏÖ£¬ÕâÑù¿ÉÒÔÌá¸ß´úÂëµÄÖØÓÃÐÔ£¬¶ø½Ó¿Ú²»ÄÜ°üº¬ÈκξßÌåµÄʵÏÖ£»
  3.½Ó¿ÚµÄÌصã
     £¨1£©½Ó¿ÚÖеijÉÔ±±äÁ¿±ØÐëÈ«²¿ÊÇpublic,static,finalÀàÐÍ£¨±àÒëʱ³£Á¿£©£¬±ØÐë±»ÏÔʽµØ³õʼ»¯£»
     £¨2£©½Ó¿ÚÖеķ½·¨±ØÐëÈ«²¿ÊÇpublic,abstractÀàÐÍ£»
             ×ۺϣ¨1£©£¨2£©Á½µã£¬½Ó¿ÚÖв»Äܹ»³öÏÖ£º
              A.ʵÀý±äÁ¿
              B.·Ç³éÏóµÄʵÀý·½·¨
              C.¾²Ì¬·½·¨
     £¨3£©½Ó¿ÚÖÐûÓй¹Ôì·½·¨£¬ÒòΪ²»Äܹ»´´½¨½Ó¿ÚµÄʵÀý¶ÔÏó£»
     £¨4£©Ò»¸ö½Ó¿Ú²»Äܹ»ÊµÏÖÁíÍâÒ»¸ö½Ó¿Ú£¬Ö»Äܹ»¼Ì³ÐÁíÍâ¶à¸ö½Ó¿Ú£¨Àà¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú£¬½Ó¿Ú¿ÉÒԼ̳жà¸ö½Ó¿Ú£©£¬Èç¹û½Ó¿ÚCͬʱ¼Ì³Ð½Ó¿ÚAºÍB£¬Ôò½Ó¿ÚC³ÉΪ·ûºÏ½Ó¿Ú£»
     £¨5£©½Ó¿Ú±ØÐëͨ¹ýÀàʵÏÖËüµÄ³éÏó·½·¨£¬µ±ÀàʵÏÖij¸ö½Ó¿Úʱ£¬Ëü±ØÐëʵÏÖ½Ó¿ÚÖÐËùÓеijéÏó·½·¨£¬·ñÔòÕâ¸öÀà±ØÐë±»¶¨ÒåΪ³éÏóÀà
     £¨6£©²»Äܹ»´´½¨½Ó¿ÚµÄʵÀý£¬µ«¿ÉÒÔ´´½¨½Ó¿ÚÀàÐ͵ÄÒýÓñäÁ¿£¬¸Ã±äÁ¿¿ÉÒÔÒýÓÃʵÏÖÕâ¸ö½Ó¿ÚµÄÀàµÄʵÀý
    4.³éÏóÀàvs½Ó¿Ú
      4.1  Ïàͬµã
      £¨1£©³éÏóÀàºÍ½Ó¿Ú¶¼Î»Óڼ̳ÐÊ÷µÄÉϲ㣻
              ÕâÀïÓÐÒ»¸öÉè¼Æ˼Ï룺µ±Ò»¸öϵͳ£¨Ò»¸öÀࣩʹÓÃÒ»¿Ã¼Ì³ÐÊ÷ÉϵÄÀàʱ£¬Ó¦¸Ã¾¡¿ÉÄܵذÑÒýÓñäÁ¿ÉùÃ÷Ϊ¼Ì³ÐÊ÷µÄÉϲã³éÏóÀàÐÍ£¬ÒýÓñäÁ


Ïà¹ØÎĵµ£º

javaÉèÖð´Ê±¼ä×Ô¶¯Ö´ÐÐ

import java.util.Timer;  
import java.util.TimerTask;  
public class EggTimer {     
    private final Timer timer = new Timer();  
    private final int minutes;  
    public EggT ......

·¢ÏÖÒ»¸öc++¶à̬Óëjava¶à̬²»Í¬µÄµØ·½

¸Õ¸Õ¿´µ½Ò»ÆªÎÄÕÂÌá³öc++¶à̬Óëjava¶à̬²»Í¬µÄµØ·½£¬»ù±¾Òâ˼ÈçÏ£º
Çë¿´C++´úÂ룺
class Base
{
public:
 Base()
 {
  init(); 
 }
 virtual ~Base() {}
protected:
 int value;
 virtual void init() 
 { 
  value = 100; &nb ......

ÓйØjavaÖеÄString£¬StringBuffer£¬StringBuild

String ×Ö·û´®³£Á¿
StringBuffer ×Ö·û´®±äÁ¿£¨Ḭ̈߳²È«£©
StringBuilder ×Ö·û´®±äÁ¿£¨·ÇḬ̈߳²È«£©
¼òÒªµÄ˵£¬ String ÀàÐÍºÍ StringBuffer ÀàÐ͵ÄÖ÷ÒªÐÔÄÜÇø±ðÆäʵÔÚÓÚ String ÊDz»¿É±äµÄ¶ÔÏó, Òò´ËÔÚÿ´Î¶Ô String ÀàÐͽøÐиıäµÄʱºòÆäʵ¶¼µÈͬÓÚÉú³ÉÁËÒ»¸öÐ嵀 String ¶ÔÏó£¬È»ºó½«Ö¸ÕëÖ¸ÏòÐ嵀 String ¶ÔÏó£¬ËùÒÔ¾­ ......

ʹÓÃJavaµÈ±ÈÀýËõ·ÅͼÏñ

±¾ÎÄΪԭ´´£¬ÈçÐèתÔØ£¬Çë×¢Ã÷×÷Õߺͳö´¦£¬Ð»Ð»£¡
   
Ëõ·ÅͼÏñµÄ»ù±¾Ô­ÀíÊÇ´´½¨Ò»¸öÄ¿±ê´óСµÄ»­²¼£¬È»ºó¶ÁȡԴͼÏñ£¬²¢½«¸ÃͼÏñ»æÖÆÕâ¸ö»­²¼ÉÏ¡£ÎªÁËʹ³ÌÐòͨÓã¬Ô´Í¼ÏñºÍËõ·ÅºóµÄÄ¿±êͼÏñÓ¦Ó÷ֱðʹÓÃ
InputStreamºÍOutputStreamÀ´±íʾ£¬´úÂëÈçÏ£º
    
public
 
stat ......

JavaÖÐÔõô¸Ä±ä×ÖÌåµÄÒ»¸ö¼òµ¥ÊµÀýºÍÔËÐÐЧ¹û

package java;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.*;
public class fontnameDome extends JFrame implements ActionListen ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ