java ×Ö·û´®±È½Ï
ÊìϤC++µÄÈ˶ÔÓÚÁ½¸ö×Ö·û´®±È½ÏµÄ´úÂëÒ»¶¨ºÜÁ˽⣺
(string1==string2)
µ«ÔÚjavaÖУ¬Õâ¸ö´úÂ뼴ʹÔÚÁ½¸ö×Ö·û´®ÍêÈ«ÏàͬµÄÇé¿öÏÂÒ²»á·µ»Øfalse
JavaÖбØÐëʹÓÃstring1.equals(string2)À´½øÐÐÅжÏ
²¹³ä
Èç¹û£º
string s1=new String("Hello");
string s2=new String("Hello");
Ôò(s1==s2)=false
Èç¹û£º
string s1="Hello";
string s2="Hello";
Ôò(s1==s2)=true;
ÒòΪËûÃÇÖ¸ÏòµÄͬһ¸ö¶ÔÏó¡£
Èç¹û°ÑÆäËû±äÁ¿µÄÖµ¸³¸øs1ºÍs2£¬¼´Ê¹ÄÚÈÝÏàͬ£¬ÓÉÓÚ²»ÊÇÖ¸Ïòͬһ¸ö¶ÔÏó£¬Ò²»á·µ»Øfalse¡£ËùÒÔ½¨ÒéʹÓÃequals()£¬ÒòΪequals±È½ÏµÄ²ÅÊÇÕæÕýµÄÄÚÈÝ
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
ÎÄÕ£ºJavaºÍ.NETÁ½¸öÊÀ½çµÄ¼«µã£º×¬Ç®ºÍÓéÀÖ
×÷Õß »ôÌ©ÎÈ ·¢²¼ÓÚ 2007Äê7ÔÂ16ÈÕ ÉÏÎç3ʱ4·Ö
ÉçÇø .NET, Java Ö÷Ìâ Java+.NET¼¯³É, »¥²Ù×÷, ¹ÊʺͰ¸Àý·ÖÎö ±êÇ© SQL Server 2005, Spring¿ò¼Ü
Ö±µ½ÏÖÔÚ£¬Ôںܶ࿪·¢ÕßÉçÇøÀïÄã¶¼»¹ÄÜ¿´µ½¹ØÓÚJavaºÍ.NETÄǸöºÃ£¬ÄĸöÈÝÒ×ѧ£¬Äĸö¸üÓÐǰ¾°µÄÌÖÂÛ¡£ÆäʵÕâЩÕùÂÛÑϸñÀ´Ëµ£¬ ......
Õ⼸ÌìÒ»Ö±ÔÚÑо¿FlexÖÐRemoteObjectÓëjavaµÄ½»»¥ÎÊÌ⣬¿ÉÒ»Ö±²»³É¹¦£¬½ñÌìÖÕÓڳɹ¦ÁË£¬µ«ÊÇ»¹ÓÐһЩÒÉ»ó£¬Ó¦¸Ã¼ÌÐøÅ¬Á¦¡£
ÏÂÃæÊÇÎҵľ¹ýºÍÅöµ½µÄ´íÎó£º
£¨1£©ÏÂÔØºÍ°²×°lcds.
ÔÚ°²×°Ä¿Â¼Ï»áÓÐÈçÏÂÎļþ£¬ÆäÖÐlcds.war¿ÉÒÔ×÷ΪÎÒÃÇ¿ª·¢FlexÓëjava½»»¥µÄÄ£°æ£¬°ÑÕâ¸öÎļþ¿¼µ½ÄãtomcatµÄwebappsÏ£¨µ±È»ÕâÖÖÇé¿öÊÇÄ ......
µÚÒ»£º
1.StringÊÇ×î»ù±¾µÄÊý¾ÝÀàÐÍô£¿
´ð£º²»ÊÇ¡£»ù±¾µÄÊý¾ÝÀàÐͰüÀ¨£ºbyte,int,char,long,float,double,booleanºÍshort.
java.lang.StringÀàÊÇfinalÀàÐ͵ģ¬Òò´Ë²»¿ÉÒԼ̳ÐÕâ¸öÀ࣬²»ÄÜÐÞ¸ÄÕâ¸öÀà¡£
2.¾²Ì¬±äÁ¿ºÍʵÀý±äÁ¿µÄÇø±ð£¿
´ð£ºstatic i = 10 ;//³£Á¿
&nb ......