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

java»ù´¡

1¡¢×÷ÓÃÓòpublic,private,protected,ÒÔ¼°²»Ð´Ê±µÄÇø±ð
×÷ÓÃÓò µ±Ç°Àà ͬһpackage ×ÓËïÀà ÆäËûpackage
public √ √ √ √
protected √ √ √ ×
²»Ð´Ê±Ä¬ÈÏΪfriendly √ √ × ×
private √ × × ×
2¡¢ArrayListºÍVectorµÄÇø±ð
Vector ÊÇḬ̈߳²È«µÄ£¬ArrayList²»ÊÇ£»ArrayListЧÂʸß
3¡¢HashMapºÍHashtableµÄÇø±ð
HashMapºÍHashtableµÄÇø±ð
  1.HashtableÊÇḬ̈߳²È«µÄÒ»¸öCollection£¬ HashMap²»ÊÇḬ̈߳²È«µÄ  
  2.HashMapÔÊÐíÒ»¸önull   keyºÍ¶à¸önull   value  ¶øhashtable²»ÔÊÐí 
  3.public   class   Hashtable   extends   Dictionary  implements   Map,   Cloneable,   Serializable   (ʵÏÖµÄÊÇMap¶ø²»ÊÇSet)  
      public   class   HashMap   extends   AbstractMap   implements   Map,   Cloneable,   Serializable
4¡¢¶àÏß³ÌÓÐÁ½ÖÖʵÏÖ·½·¨£º
£¨1£©¼Ì³ÐThreadÀà,¸²¸Ç·½·¨ run()£¬ÎÒÃÇÔÚ´´½¨µÄ Thread ÀàµÄ×ÓÀàÖÐÖØд run() ,ÔÚ´Ë·½·¨ÖмÓÈëÏß³ÌËùÒªÖ´ÐеĴúÂë¼´¿É£º
£¨2£©ÊµÏÖRunnable½Ó¿Ú
Runnable ½Ó¿ÚÖ»ÓÐÒ»¸ö·½·¨ run()£¬ÎÒÃÇÉùÃ÷×Ô¼ºµÄÀàʵÏÖ Runnable ½Ó¿Ú²¢ÌṩÕâÒ»·½·¨£¬½«ÎÒÃǵÄÏ̴߳úÂëдÈëÆäÖУ¬¾ÍÍê³ÉÁËÕâÒ»²¿·ÖµÄÈÎÎñ¡£µ«ÊÇ Runnable ½Ó¿Ú²¢Ã»ÓÐÈκζÔÏ̵߳ÄÖ§³Ö£¬ÎÒÃÇ»¹±ØÐë´´½¨ Thread ÀàµÄʵÀý£¬ÕâÒ»µãͨ¹ý Thread ÀàµÄ¹¹Ô캯Êýpublic Thread(Runnable target);À´ÊµÏÖ
5¡¢Í¬²½ÓÐÁ½ÖÖʵÏÖ·½·¨£º
£¨1£©synchronized
£¨2£©wait,motify
6¡¢ÄÚ²¿ÀàÏà¹Ø
1.¾²Ì¬ÄÚ²¿Àà¿ÉÒÔÓо²Ì¬³ÉÔ±£¬¶ø·Ç¾²Ì¬ÄÚ²¿ÀàÔò²»ÄÜÓо²Ì¬³ÉÔ±¡£
2.¾²Ì¬ÄÚ²¿ÀàµÄ·Ç¾²Ì¬³ÉÔ±¿ÉÒÔ·ÃÎÊÍⲿÀàµÄ¾²Ì¬±äÁ¿£¬¶ø²»¿É·ÃÎÊÍⲿÀàµÄ·Ç¾²Ì¬±äÁ¿£»
3.·Ç¾²Ì¬ÄÚ²¿ÀàµÄ·Ç¾²Ì¬³ÉÔ±¿ÉÒÔ·ÃÎÊÍⲿÀàµÄ·Ç¾²Ì¬±äÁ¿¡£
7¡¢JAVAÖеÄCollection FrameWork
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦ ©¸Stack
©¸Set
CollectionÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©
MapÌ


Ïà¹ØÎĵµ£º

mapXtreme for java ÉèÖõØͼÖеã

¸ÕѧGIS£¬×ö¸öÉèÖõØͼÖеã¾Í³öÁËÂé·³ £¡µ«ÊÇÒ»Ö±¾ÍÊÇÉèÖò»ÕýÈ·£¬¸ãÁËN¾Ã£»ºóÀ´·¢ÏÖÎÊÌâÔÚÓÚÉèÖõĵØͼ±ß½ç¸ß¶È¼°¿í¶ÈÒªÓëÒ³Ãæ¶ÔÓ¦µÄÊä³ö´¦µÄ¸ß¶È¼°¿í¶ÈÒªÒ»Ö¡£
  Ò²¾ÍÊÇ£º
  myMap.setDeviceBounds(new DoubleRect(0, 0, m_mapWidth, m_mapHeight));
  m_mapWidth, m_mapHeight µÄÖµÒªÓëÏÂà ......

°¢Àï°Í°ÍÍøÕ¾¼¼Êõ²¿ÕÐƸJava¿ª·¢¹¤³Ìʦ

¹«Ë¾ÒµÎñ¼±ËÙÀ©ÕÅ£¬¼±ÐèÓвÅÄܵÄͬѧ¼ÓÈëµ½ÎÒÃǵÄÐÐÁÐÖУ¬
×îºÃÄã¶Ô¹¤×÷»ý¼«£¬ÈÏÕ棬¸ºÔð
×îºÃÄãÒѾ­ÓÐÔúʵµÄ±à³Ì»ù´¡
×îºÃÄãÒѾ­ÊìÁ·ÕÆÎÕJava¼¼Êõ
×îºÃÄãÖÁÉÙÒÑÓÐÒ»£¬Á½Ä깤×÷¾­Ñé
  
¹¤×÷µØµã£ºº¼ÖÝ
ְλ      £ºJava¿ª·¢¹¤³Ìʦ£¨°¢Àï°Í°Í¼¯ÍÅB2B¹«Ë¾ÍøÕ¾¼¼Êõ²¿£©
ÓÐÒâÕßÇë°Ñ ......

Java»Øµ÷¹¦ÄÜʹÓÃ

    JavaµÄ»Øµ÷·½·¨²»ÏñcÄÇÑù¿ÉÒÔÖ±½Ó´«µÝÒ»¸ö·½·¨£¬java´«µÝµÄÊÇÒýÓã¬ËùÒÔjava¶Ô·½·¨»Øµ÷µÄ½â¾ö°ì·¨ÊÇÖ±½Ó´«µÝÒ»¸ö½Ó¿Ú£¬¶Ô½Ó¿Ú½øÐÐʵÏÖ¡£ÏÂÃæÊÇÒ»¸öÀý×Ó
Ê×Ïȶ¨ÒåÒ»¸ö½Ó¿ÚCar£¬ÓÐÒ»¸örunµÄ·½·¨ÉùÃ÷
Java´úÂë
package ocm.callback;  
 
public interface Car {  
& ......

һƪ²»´íµÄ½²½âJavaÒì³£µÄÎÄÕÂ


±¾ÎÄÓɲ©Ö÷´Óhttp://www.blogjava.net/freeman1984/archive/2007/09/27/148850.htmlתÔØ£»Ô­Îijö´¦£¬²©Ö÷Ò²²»ÖªµÀ£¬Ï£Íû¶Ô´ó¼ÒÓеã°ïÖú......
ÁùÖÖÒì³£´¦ÀíµÄªϰ
Äã¾õµÃ×Ô¼ºÊÇÒ»¸öJavaר¼ÒÂð£¿ÊÇ·ñ¿Ï¶¨×Ô¼ºÒѾ­È«ÃæÕÆÎÕÁËJavaµÄÒì³£´¦Àí»úÖÆ£¿ÔÚÏÂÃæÕâ¶Î´úÂëÖУ¬ÄãÄܹ»Ñ¸ËÙÕÒ³öÒì³£´¦ÀíµÄÁù¸öÎÊÌâÂ𣿠
1 Output ......

Java Á¬½Ó SQL Server 2000ʾÀý´úÂë

ÄãµÄSQL Server 2000±ØÐë´òÉÏSP3µÄ²¹,È»ºó°²×°MicrosoftµÄJDBCÇý¶¯,½«ÒÔÏÂÈý¸öjar°ü¸´ÖƵ½WebContent\WEB-INF\lib
msbase.jar
mssqlserver.jar
msutil.jar
ÏÂÃæÊDzâÊÔ´úÂ룬ûÓб¨´íÊý¾Ý¿â¾ÍÄÜÕý³£Á¬½Ó
 public class DbcTest {
/**
* @param args
*/
public static void main(String[] args) {
Str ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ