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
ËùÖ¸µÄ¶ÔÏó
,
×ÛºÏÒÔÉÏÁ½µã
,
µ
Ïà¹ØÎĵµ£º
javaÖÐɾ³ýĿ¼ÊÂÏÈҪɾ³ýĿ¼ÏµÄÎļþ»ò×ÓĿ¼¡£Óõݹé¾Í¿ÉÒÔʵÏÖ¡£
public void del(String filepath) throws IOException{
File f = new File(filepath);//¶¨ÒåÎļþ·¾¶
if(f.exists() && f.isDirectory()){//ÅжÏÊÇÎļþ»¹ÊÇĿ¼
if( ......
Á½ÖÖ½¨Á¢Ï̶߳ÔÏóµÄ·½·¨£º
Extends Thread
implement Runnable
ÕâÁ½ÖÖ·½·¨¶¼¿ÉÒÔ´´½¨Ò»¸öÏ̶߳ÔÏó£¬
public class TestThread {
public static void main(String arg[]){
newThread thread = new ne ......
Ò»¡¢Servlet¹ýÂËÆ÷µÄ¸ÅÄ
***************************************************************************************
Servlet¹ýÂËÆ÷ÊÇÔÚJava Servlet¹æ·¶2.3Öж¨ÒåµÄ£¬ËüÄܹ»¶ÔServletÈÝÆ÷µÄÇëÇóºÍÏìÓ¦¶ÔÏó½øÐмì²éºÍÐ޸ġ£¡¡¡¡¡¡
Servlet¹ýÂËÆ÷±¾Éí²¢²»²úÉúÇëÇóºÍÏìÓ¦¶ÔÏó£¬ËüÖ»ÄÜÌṩ¹ýÂË×÷Óá£Servlet¹ýÆÚÄÜ ......
ÏàÐÅ´ó¼Ò¶¼ÓÃjavadocµÄÃüÁîÉú³É¹ýapi help °É£¿µ«ÊÇ°ü×¢ÊÍÔõôÀ´µÄÄØ£¿½ñÌìѧϰԴ´úÂëµÄʱºò·¢ÏÖÁËÕâ¸ö°ü×¢Ê͵ÄÀ´Ô´¡£
±ÈÈ磺org.apache.james.utilÕâ¸öµÄ°ü×¢ÊÍ¡£ÔÚÕâ¸ö°üϱßÓÐÒ»¸öpackage.htmlµÄÎļþ¡£
<body>
<p>A variety of utility classes used inside James.</p>
</body>
ÕâÑùÔÙÓ ......
1. ±äÁ¿²»×ö³õʼ»¯¡£
2. ·ÖÅäµÄ¶ÔÏó²»×öÏú»Ù¡£Ò»¸öºÃµÄÏ°¹ß¾ÍÊÇ£¬Ã¿Éú³ÉÒ»¸öÀàʱ£¬¾Í×Ô¶¯Ð´Ò»¸ö×Ô¼ºµÄInitInstanceMember,ºÍ ReleaseInstanceMember()·½·¨¡£
3. °üµÄ·ÖÀ࣬Èç¹û×Ô¼º²»×ösourceµÄÂß¼·ÖÀ࣬C++»·¾³Ò»°ãÊDz»»á×Ô¼º×öµÄ¡£Õâ¸ö¸úJavaÖеÄpackageºÍÎļþÎïÀíÉÏ´æ´¢·½Ê½Ò»ÖÂÊDz»Ò»ÑùµÄ¡£
C++ ......