JAVA±ÊÊÔÌ⾫»ª°æ1.0
JAVA±ÊÊÔÌ⾫»ª°æ1.0
public class Test2
{
public static void main(String[] args)
{
Float a = new Float(3.4);
System.out.println(a.SIZE);
a = new Float(34000);
System.out.println(a.SIZE);
}
}
ÈÃÎÒÃÇÀ´¿´¿´´Ë³ÌÐò»áÊä³öʲôÄØ?
ÎÒÃÇÏÈÀ´¿´¿´JDK
µÄ½âÊÍ°É
.
public static final int SIZE
The number of bits used to represent a float value.
Òâ˼ÊÇ˵:
ͨ³£È¥ÃèÊöÒ»¸ö
float
ÖµµÄλÊý
.
Õâ¸öÊÇÒ»¸ö³£Á¿,
À´¿´¿´Ô´Âë°É
:
public static final int SIZE = 32;
final int ±äÁ¿Ò»µ©±»¶¨Òå¾Í²»Äܱ»¸Ä±ä
~
1.д³öÏÂÃæ´úÂëµÄ½á¹û
¡¡public class TestString{
¡¡¡¡
public static void link(String a){
¡¡¡¡
a += "World";
¡¡¡¡
}
¡¡¡¡
public static void main(String[] args){
¡¡¡¡
String a = "Hello";
¡¡¡¡
link(a);
¡¡¡¡
System.out.println(a);
¡¡¡¡
}
¡¡}
´ð:
ÕâµÀÌ⿼Á½¸ö·½Ãæ
:
1).¡¡
String
¶ÔÏóµÄÄÚÈÝÊDz»ÄܸıäµÄ
,a+="World"
²¢²»ÊÇ°Ñ
a
ËùÖ¸¶ÔÏó¸Ä±ä
,
¡¡¡¡¶øÊÇÏÈÉú³ÉÒ»¸öÁÙʱString
¶ÔÏó
,
ÆäֵΪ
a+"World",
È»ºóÔÚ°ÑÕâ¸öÁÙʱ
¡¡¡¡¶ÔÏ󸳸øa.
2).¡¡
Java
Öк¯Êý²ÎÊý´«µÝ·½Ê½Îª
Call by value,link
·½·¨ÖлáÉú²ú
a
µÄÒ»¸ö
¡¡¡¡¿½±´,
ͬÑùÖ¸Ïò
a
ËùÖ¸µÄ¶ÔÏó
,
×ÛºÏÒÔÉÏÁ½µã
,
µ
Ïà¹ØÎĵµ£º
±¾ÎĵÄÔ¤¶¨¶ÁÕßÊ×ÏÈÒª¶Ôj2eeÓÐËùÁ˽⣬ÊìϤxml£¬tomcatµÈ»ù±¾ÄÚÈÝ£¬±¾ÎÄÖ÷ÒªÊǼòµ¥½éÉÜÒ»ÏÂweb·þÎñµÄ»ù±¾ÄÚÈÝ£¬ÔõÑùÔÚjava web¿ª·¢Öй¹½¨SOAP·þÎñ£º
Ò»¡¢
SOAP£¨Simple Object Access
Protocol£©¼òµ¥¶ÔÏó·ÃÎÊÐÒ飬ҪÁ˽âSOAP£¬Ê×ÏȾÍÐèÒªÁ˽â·Ö²¼Ê½¼ÆËãµÄÓÉÀ´£¬Ëæ×ÅÏÂÒ»´úµÄ·Ö²¼Ê½¼ÆËãÌåϵweb·þÎñµÄ³öÏÖ£¬SOAP³É ......
javaÖÐɾ³ýĿ¼ÊÂÏÈҪɾ³ýĿ¼ÏµÄÎļþ»ò×ÓĿ¼¡£Óõݹé¾Í¿ÉÒÔʵÏÖ¡£
public void del(String filepath) throws IOException{
File f = new File(filepath);//¶¨ÒåÎļþ·¾¶
if(f.exists() && f.isDirectory()){//ÅжÏÊÇÎļþ»¹ÊÇĿ¼
if( ......
¡¡¡¡javaÖÐÓÐÁ½ÖÖ°üµÄµ¼Èë»úÖÆ£¬×ܽáÈçÏ£º
¡¡¡¡µ¥ÀàÐ͵¼Èë(single-type-import)£¬ÀýÈçimport java.io.File;
¡¡¡¡°´ÐèÀàÐ͵¼Èë(type-import-on-demand)£¬ÀýÈç import java.io.*;
¡¡¡¡¹ØÓÚÕâÁ½ÖÖµ¼ÈëÀàÐÍ´ó¼Ò¸÷ÓÐËù°®£¬ÖÚ˵·×ç¡¡£ÕâÀï·ÖÎöÒ»ÏÂÕâÁ½ÖÖµ¼ÈëÀàÐ͵ĴóÖ¹¤×÷ÔÀí¹©´ó¼Ò²Î¿¼¡£
¡¡¡¡µ¥ÀàÐ͵¼Èë±È½ÏºÃÀí½â£¬½ö½öµ ......
ÒÔÏÂÊǶÔJAVAÒì³£µÄ¼Ì³Ð»úÖƵÄһЩ×ܽᡣ
1. RuntimeExceptionÓëException, Error²»Í¬µã£º µ±·½·¨ÌåÖÐÅ׳ö·ÇRuntimeException£¨¼°Æä×ÓÀࣩʱ£¬·½·¨Ãû±ØÐëÉùÃ÷Å׳öµÄÒì³££»µ«Êǵ±·½·¨ÌåÖÐÅ׳öRuntimeException£¨°üÀ¨RuntimeException×ÓÀࣩʱ£¬·½·¨Ãû²»±ØÉùÃ÷¸Ã¿ÉÄܱ»Å׳öµÄÒì³££¬¼´Ê¹ÉùÃ÷ÁË£¬JAVA³ÌÐòÔÚij¸öµ÷Óõĵط½£¬Ò² ......
1. ±äÁ¿²»×ö³õʼ»¯¡£
2. ·ÖÅäµÄ¶ÔÏó²»×öÏú»Ù¡£Ò»¸öºÃµÄÏ°¹ß¾ÍÊÇ£¬Ã¿Éú³ÉÒ»¸öÀàʱ£¬¾Í×Ô¶¯Ð´Ò»¸ö×Ô¼ºµÄInitInstanceMember,ºÍ ReleaseInstanceMember()·½·¨¡£
3. °üµÄ·ÖÀ࣬Èç¹û×Ô¼º²»×ösourceµÄÂß¼·ÖÀ࣬C++»·¾³Ò»°ãÊDz»»á×Ô¼º×öµÄ¡£Õâ¸ö¸úJavaÖеÄpackageºÍÎļþÎïÀíÉÏ´æ´¢·½Ê½Ò»ÖÂÊDz»Ò»ÑùµÄ¡£
C++ ......