JAVAÊÕ¼¯
1.vectorÊÇÏß³Ìͬ²½µÄ£¬ËùÒÔËüÒ²ÊÇḬ̈߳²È«µÄ£¬¶øarraylistÊÇÏß³ÌÒì²½µÄ£¬ÊDz»°²È«µÄ¡£Èç¹û²»¿¼Âǵ½Ï̵߳ݲȫÒòËØ£¬Ò»°ãÓÃarraylistЧÂʱȽϸߡ£ 2.Èç¹û¼¯ºÏÖеÄÔªËصÄÊýÄ¿´óÓÚÄ¿Ç°¼¯ºÏÊý×éµÄ³¤¶Èʱ£¬vectorÔö³¤ÂÊΪĿǰÊý×鳤¶ÈµÄ100%,¶øarraylistÔö³¤ÂÊΪĿǰÊý×鳤¶ÈµÄ50%.Èç¹ýÔÚ¼¯ºÏÖÐʹÓÃÊý¾ÝÁ¿±È½Ï´óµÄÊý¾Ý£¬ÓÃvectorÓÐÒ»¶¨µÄÓÅÊÆ¡£ 3.Èç¹û²éÕÒÒ»¸öÖ¸¶¨Î»ÖõÄÊý¾Ý£¬vectorºÍarraylistʹÓõÄʱ¼äÊÇÏàͬµÄ£¬¶¼ÊÇo(1),Õâ¸öʱºòʹÓÃvectorºÍarraylist¶¼¿ÉÒÔ¡£¶øÈç¹ûÒƶ¯Ò»¸öÖ¸¶¨Î»ÖõÄÊý¾Ý»¨·ÑµÄʱ¼äΪo(n-i)nΪ×ܳ¤¶È£¬Õâ¸öʱºò¾ÍÓ¦¸Ã¿¼Âǵ½Ê¹ÓÃlinklist,ÒòΪËüÒƶ¯Ò»¸öÖ¸¶¨Î»ÖõÄÊý¾ÝËù»¨·ÑµÄʱ¼äΪo(1),¶ø²éѯһ¸öÖ¸¶¨Î»ÖõÄÊý¾Ýʱ»¨·ÑµÄʱ¼äΪo(i)¡£ ÅжÏÀàµÄËùÊô¹Øϵ:
A instanceof B
Èç¹ûAÀàÊôÓÚBÀàÔò·µ»Øtrue JAVAÖеÄÃüÃûÏ°¹ß£º 1.°üÖеÄ×ÖĸһÂÉСд 2.ÀàÃû½Ó¿ÚÃûÓ¦µ±Ê¹ÓÃÃû´Ê£¬Ã¿¸öµ¥´ÊµÄÊ××Öĸ´óд 3.·½·¨Ãû£¬µÚÒ»¸öµ¥´ÊСд£¬ºóÃæÿ¸öµ¥´ÊÊ××Öĸ´óд 4.±äÁ¿Ãû£¬µÚÒ»¸öµ¥´ÊСд£¬ºóÃæÿ¸öµ¥´ÊµÄÊ××Öĸ´óд 5.³£Á¿ÃûÖеÄ×ÖĸһÂÉ´óд JAVAÖеÄͬ²½Óï¾ä¿é:
synchronized(Object ob) //ob Ïß³ÌËøÆì±ê
{
Ï̴߳úÂë
} Ï߳̿ØÖÆ:
ob.wait():ÊÍ·ÅËøÆì±ê,²¢½øÈë˯Ãß״̬
ob.notify():»½ÐѵÚÒ»¸ö½øÈë˯ÃßµÄÏß³Ì
ob.notifyAll():»½ÐÑËùÓнøÈë˯ÃßµÄÏß³Ì String Àà:
±È½ÏÁ½¸öStringÀà:
"=="±È½Ï2¸öStringÊÇ·ñÒýÓÃͬһ¶ÔÏó;
String.equals()±È½ÏÄÚÈÝÊÇ·ñÏàͬ;
String.equalslgnoreCase()ͬString.equals(),²¢ºöÂÔ´óСд TimerÓëTimerTaskÀà schedule(TimerTask task,long delay)Ö¸¶¨¹ý¶à³¤Ê±¼ä(delay)ºóµ÷ÓÃtaskÖеĴúÂë schedule(TimerTask task,Date time)Ö¸¶¨ÔÚʲôʱ¼ä(time)¿ªÊ¼µ÷ÓÃtaskÖеĴúÂë schedule(TimerTask task,long delay,long period) Ö¸¶¨¼ä¸ôdelayʱ¼äºó¿ªÊ¼¶¨ÆÚÖ´ÐÐ(periodʱ¼ä¼ä¸ô)taskÖеĴúÂë schedule(TimerTask task,Date time,long period) Ö¸¶¨ÔÚʲôʱ¼ä¿ªÊ¼¶¨ÆÚÖ´ÐÐtaskÖеĴúÂë TimerTaskÀàʵÏÖÁËRunnable½Ó¿Ú,ÒªÖ´ÐеÄÈÎÎñÓÉËüÀïÃæÏÖʵµÄrun·½·¨Íê³É MathÓëRandomÀà: MathÀà°üº¬ÁËËù
Ïà¹ØÎĵµ£º
¾àÀëJava7µÄMR°æ±¾·¢²¼ÓжÎʱ¼äÁË£¬Í¨¹ý°²×°ÊÔÓÃÖ®ºóµÄ×ÜÌå¸Ð¾õÊÇ£ºËÙ¶ÈÓÖ¿ìÁË¡£×ÐϸÔĶÁÁËJava7µÄÏà¹ØÎĵµ·¢ÏÖ£¬Java7ÓµÓÐÈçϵÄһЩеÄÌØÐÔ¡£
Ê×ÏÈÊÇÄ£¿é»¯ÌØÐÔ£¬Èç¹ûÄú°²×°ºÍʹÓùýNetBeans6.7µÄ»°£¬ÊDz»ÊÇ»áÓÐÒ»¸öºÜ´óµÄ¸Ð¾õ£¬¾ÍÊÇNetBeans6.7µÄÆô¶¯ËٶȱÈÒÔÇ°¿ìÁ˺ܶ࣬µ±È»²¢²»ÊÇNetBeansÒѾʹ ......
¶ÔÓÚÔÓïÀàÐ͵ÄÊý×飬Èçint[] a,ÔÚCÀïÃæÖ»ÒªÕâÑù¶¨ÒåÖ®ºó¾Í¿ÉÒÔÓÃa[i]ʹÓÃÁË£¬µ«ÊÇÔÚJAVAÀïÃæÊDz»Ðеģ¬±ØÐëÓÃint[] a = new int[LENGTH];À´ÎªÊý×é·ÖÅä¿Õ¼ä¡£ÕâÀïµÄa¸üÓ¦¸Ã¿´³ÉCÀïÃæµÄÖ¸Õ룬ËüºÍCÀïÃæµÄint* aÊÇÒ»ÑùµÄ£¬ÒòΪÕâ¸öa£¨CÀïÃæµÄ£©Ò²ÒªÏÈmallocÒ»¸ö¿Õ¼äÖ®ºó²Å¿ ......
package com.project.ajaxs;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.Calendar;
import java.uti ......
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JFrame;
import j ......
Java Applet ÊÇÓÃJava ÓïÑÔ±àдµÄһЩСӦÓóÌÐò£¬ÕâЩ³ÌÐòÊÇÖ±½ÓǶÈëµ½Ò³ÃæÖУ¬ÓÉÖ§³ÖJavaµÄä¯ÀÀÆ÷£¨IE »ò Nescape£©½âÊÍÖ´ÐÐÄܹ»²úÉúÌØÊâЧ¹ûµÄ³ÌÐò¡£Ëü¿ÉÒÔ´ó´óÌá¸ßWebÒ³ÃæµÄ½»»¥ÄÜÁ¦ºÍ¶¯Ì¬Ö´ÐÐÄÜÁ¦¡£°üº¬AppletµÄÍøÒ³±»³ÆΪJava-poweredÒ³£¬¿ÉÒÔ³ÆÆäΪJavaÖ§³ÖµÄÍøÒ³¡£
µ±Óû§·ÃÎÊÕâÑùµÄÍøҳʱ£¬Ap ......