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

javaÖеÄÏàµÈÐÔ×ܽá

       ѧjavaÓжÎʱ¼äÁË£¬ÒÔÏÂÊǸöÈ˵ÄÒ»µãÐĵÃÌå»á£¬Ï£ÍûÄܹ»°ïÖúÄÇЩ¸Õ¿ªÊ¼±à³ÌµÄͬ־ÃÇ¡£
      ¼¸ÌìÇ°£¬Ò»Í¬Ñ§ÈÃÎÒ°ïæ¿´ËûµÄ³ÌÐòµ½µ×³öÏÖʲôÎÊÌ⣬´úÂë±È½ÏÂÒ£¬Ò²Ã»ÓÐ×¢ÊÍ£¬ÎÒ¿´Á˺Ü
³¤Ò»¶Îʱ¼ä¾¹ÊÇÕÒ²»µ½ÎÊÌâËùÔÚ¡£³ÌÐò´óÌåÊÇÕâÑùµÄ£¬ÓÐÒ»¶ÎÎı¾taxt,´ÓÖмäÕÒ³öÈÎÒâ´ÊÓï¾ä×Ó½øÐÐÌæ
»»£¬µ±Ê±ËûʹÓÃifÅжϺó½øÐÐÌæ»».
String selectText=Text.area1.getSelectedText();
String searchText = Text.searchText;
if(selectText == searchText)
{
.......
}  
дµ½ÕâÀï¹À¼ÆÃ÷ÑÛÈËÒ»¿´¾ÍÖªµÀÎÊÌâËùÔÚ£¬==µÄʹÓÃÓÐÎÊÌ⣡ÓÉÓÚ×Ô¼º¶ÔÕⲿ·ÖÄÚÈݱȽÏÉúÊ裬ËùÒÔÉÏ
ÍøËÑÁËһϷ¢ÏÖÓв»ÉÙÈËÅöµ½equalÓë==µÄÎÊÌ⣬³öÓÚ¼ÓÉîÀí½â¾ö¶¨Ð´Ò»ÆªÎÄÕ£¬Ð´µÄ²»ºÃ»¶Ó­ÅÄש£¬
ÒÔÆÚÅ×שÒýÓñ֮Ч£¬»¹Çë¸ßÊÖ²»Áߴͽ̡£
      ÏàÐÅѧϰjavaµÄͬ־ÃǶ¼Çå³þ£¬ÄÇôÏÖÔÚ´ò¿ªAPI¿´Ò»¿´Ààobject°É£¬Object ÊÇÀà²ã´Î½á¹¹µÄ¸ùÀà¡£
ÿ¸öÀ඼ʹÓà Object ×÷Ϊ³¬Àà¡£ËùÓжÔÏ󣨰üÀ¨Êý×飩¶¼ÊµÏÖÕâ¸öÀàµÄ·½·¨£¬ObjectÓÐÒ»¸ö¹¹Ô캯Êý¡£
public int hashCode()
public boolean equals(Object obj)
public String toString()
protected void finalize()
protected Object clone()
public final Class<?> getClass()
public final void notify()
public final void notifyAll()
public final void wait(long timeout)
public final void wait(long timeout,int nanos)
public final void wait()
ÊýÁËһϳý¹ý¹¹Ô캯Êý£¬Object×ܹ²ÓÐ11¸ö¶ÔÍâ¿ÉʹÓõķ½·¨£¬½«Õâ11¸ö·½·¨°´ÕÕÊÇ·ñ¿ÉÒԼ̳ÐÖØдÀ´»®
·Ö£¬¿ÉÒÔ¿´µ½ÎÒÃDZȽϳ£Óõļ¸¸ö·½·¨toString(),equals(),hashCode()²»³£Óõ«ÔÚʹÓÃMapʱºÜÖØÒª¶ø
ÇÒºÜÈÝÒ׳öÎÊÌ⣬½ÓÏÂÀ´ÎÒÃǾͼ¯Öп´¿´Õ⼸¸ö·½·¨£¬
²é¿´jdkÖеÄÔ´´úÂë:
package java.lang;
public boolean equals(Object obj) {
return (this == obj);
}
public String toString() {
return getClass().getName()+ "@"
+Integer.toHexString(hashCode());
}
public native int hashCode();
¿ÉÒÔ¿´µ½£¬ObjectÌṩµÄequals·½·¨ÊÇͨ¹ý"=="ʵÏֵģ¬ ¶øThink in java(4th) P44Ò³
public class Equivalence
{
public static void main(String[] args)
{
Integer a = new Integer(4);
Intege


Ïà¹ØÎĵµ£º

JAVA JNI

http://blog.csdn.net/hbcui1984/archive/2009/12/10/4980805.aspx
Ò»¡¢¸ÅÊö
JNI(java native interface)£¬JAVA±¾µØ½Ó¿Úµ÷Óã¬Ä¿µÄÊÇΪÁËJAVA¿ÉÒÔµ÷Óñ¾µØ³ÌÐò£¬Ö÷ÒªÓŵãÓУº
Ìá¸ßЧÂÊ£¬½â¾öÐÔÄÜÎÊÌâ
·ÀÖ¹·´±àÒ룬Ìá¸ßºËÐÄ´úÂ밲ȫÐÔ
ÔöÇ¿±¾»ú½Ó¿Úµ÷ÓÃ
ǶÈëʽ¿ª·¢Ó¦ÓÃ
    ÈçÏÂͨ¹ýÒ»¸ö×î¼òµ¥µÄÐ ......

java¶ÁÈ¡±¾µØexcelÎļþ´úÂë

package cn.com.view.read;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
public class ReadExcel { ......

ÉîÈëÁ˽âJava ClassLoader¡¢Bytecode ¡¢ASM¡¢cglib

Ò»¡¢Java ClassLoader
1£¬Ê²Ã´ÊÇClassLoader
Óë C »ò C++ ±àдµÄ³ÌÐò²»Í¬£¬Java ³ÌÐò²¢²»ÊÇÒ»¸ö¿ÉÖ´ÐÐÎļþ£¬¶øÊÇÓÉÐí¶à¶ÀÁ¢µÄÀàÎļþ×é³É£¬Ã¿Ò»¸öÎļþ¶ÔÓ¦ÓÚÒ»¸ö Java Àà¡£
´ËÍ⣬ÕâЩÀàÎļþ²¢·ÇÁ¢¼´È«²¿¶¼×°ÈëÄڴ棬¶øÊǸù¾Ý³ÌÐòÐèҪװÈëÄÚ´æ¡£ClassLoader ÊÇ JVM Öн«Àà×°ÈëÄÚ´æµÄÄDz¿·Ö¡£
¶øÇÒ£¬Java ClassLoader ......

javaÖеÄsynchronized¹Ø¼ü×Ö

À´Ô´: http://xfshiyuan.blog.sohu.com/100496073.html  
ÓÉÓÚͬһ½ø³ÌµÄ¶à¸öÏ̹߳²ÏíͬһƬ´æ´¢¿Õ¼ä£¬ÔÚ´øÀ´·½±ãµÄͬʱ£¬Ò²´øÀ´ÁË·ÃÎʳåÍ»Õâ¸öÑÏÖصÄÎÊÌâ¡£JavaÓïÑÔÌṩÁËרÃÅ»úÖÆÒÔ½â¾öÕâÖÖ³åÍ»£¬ÓÐЧ±ÜÃâÁËͬһ¸öÊý¾Ý¶ÔÏ󱻶à¸öÏß³Ìͬʱ·ÃÎÊ¡£
¡¡¡¡ÐèÒªÃ÷È·µÄ¼¸¸öÎÊÌ⣺
¡¡¡¡1)synchronized¹Ø¼ü×Ö¿É ......

java³õѧ֮»ù´¡ÎÊÌâ½â´ð——ÄÚ²¿Àà


 public class OuterClass
 {
 public class InnerClass
 {
 public int code = 100;
 }
 public static void main(String[] args)
 {
 OuterClass outer = new OuterClass();
 OuterClass.InnerClass o = outer.new InnerClass();
 System. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ