¹ØÓÚjavaÖеIJÎÊý´«µÝ
ÎÊÌâµÄÒýÈëÊÇÒòΪÏÂÎçÔÚȺÀï¿´µ½ÁËÒ»¸öÍøÓѵÄÎÊÌ⣺
¸ø¶¨ÈçÏÂJava ´úÂ룬±àÒëÔËÐкó£¬Êä³ö½á¹ûÊÇ£¨ £©¡£
public class Test {
public static void main(String [ ] args) {
StringBuffer a = new StringBuffer(“A”);
StringBuffer b = new StringBuffer(“B”);
operate(a , b);
System.out.println(a + ”,” + b);
}
static void operate(StringBuffer x , StringBuffer y) {
x.append(y);
y = x;
}
}
A. A,B B. AB,B C. A,AB D.AB,AB
ÅóÓÑ¿ÉÒԲ²ÂÕâ¸ö´ð°¸£¬ÎÒÒ²Ïë¸æËß´ó¼Ò£¬´ð°¸ÊÇ£ºB¡£Ò²ÐíÓÐÈË»áºÜ¾ªÑÈ£¬Ò²ÐíÓÐÈË»áºÜµ¶¨¡£ÒòΪStringBufferÊÇÒ»¸öÀ࣬¶ÔÓÚÀàµÄʹÓã¬Í¨¹ýnew£¬ÔÚ¶ÑÖд´½¨Ò»¸öÀàµÄʵÀý£¬ÀûÓÃÒ»¸öÒýÓÃÀ´ÊµÏÖ¶ÔÕâ¸ö¶ÔÏóµÄ²Ù×÷¡£µ±°ÑÒ»¸öÒýÓõ±×÷²ÎÊý´«µÝµ½Ò»¸öº¯ÊýÖеÄʱºò£¬C++²ÉÈ¡µÄÊÇ£ºÕâ¸ö²ÎÊýÊÇÒ»¸öµØÖ·¡£¶øÔÚjavaÖÐûÓеØÖ·Õâ¸ö¸ÅÄһÇж¼ÊÇÖµ´«µÝ£¬ÄÇôÕâÀïÓÖÊÇÔõô¿ØÖƵġ£
Ê×ÏÈ£¬ÎÒ×öÁËÒ»¸ö²âÊÔ£º
public class Text {
public static void main(String[] args) {
String s = "b";
f(s);
System.out.println(s);
}
static void f(String s) {
s = "c";
}
} /* output
b
*///~
´Ó½á¹û¿ÉÒÔ¿´³ö£ºÐβεÄЧ¹û²¢Ã»ÓÐ×÷Óõ½Êµ²ÎÖС£ÎÒÃǼÌÐø¿´ÏÂÒ»¶Î´úÂ룺
public class Text {
String s = "b";
public static void main(String[] args) {
Text t = new text();
f(t.s);
 
Ïà¹ØÎĵµ£º
MySQL£º
String Driver="com.mysql.jdbc.Driver"; //Çý¶¯³ÌÐò
String URL="jdbc:mysql://localhost:3306/db_name"; //Á¬½ÓµÄURL,db_nameΪÊý¾Ý¿âÃû
String Username="username"; //̞
String Password="password"; //ÃÜÂë
Class.forName(Driver).new Instance();
......
String newStr = new String(oldStr.getBytes(), "UTF-8");
javaÖеÄStringÀàÊÇ°´ÕÕunicode½øÐбàÂëµÄ£¬µ±Ê¹ÓÃString(byte[] bytes, String encoding)¹¹Ôì×Ö·û´®Ê±£¬encodingËùÖ¸µÄÊÇbytesÖеÄÊý¾ÝÊÇ°´ÕÕÄÇÖÖ·½Ê½±àÂëµÄ£¬¶ø²»ÊÇ×îºó²úÉúµÄStringÊÇʲô±àÂ뷽ʽ£¬»»¾ä»°Ëµ£¬ÊÇÈÃϵ ......
http://developer.51cto.com/art/200906/130976.htm
JSF 2.0
¾¡¹Ü Java ÔÚչʾ²ã¿ò¼ÜÉϾºÕùµÄ·Ç³£¼¤ÁÒ£¬µ« JSF ÈÔÈ»¹ÌÊØ×Å×Ô¼ºµÄÁìµØ¡£ËäÈ»Óкܶà¹ØÓÚ JSF µÄÒ×ÓÃÐԺͽ¡×³ÐÔµÄÖÊÒÉÉù£¬µ« JSF2.0 ¾ÍÊÇΪÕýÃæ½â¾öÕâЩÎÊÌâ¶øÌá³öÀ´µÄ£¬ËüµÄÒ×Ó㬴´ÐÂÒÔ¼°¿ÉÀ©Õ¹µÄÌØÐÔ°üÀ¨£º
JSF Õýʽ½« Facelets ×÷ΪÊÓͼ¼¼Êõ¡£Ò²ÐíÄã²»ÊìÏ ......
1. ²¼¾Ö¹ÜÀíÆ÷
ÈÝÆ÷Àï×é¼þµÄ´óСºÍλÖÃÊÇÓɲ¼¾Ö¹ÜÀíÆ÷À´¾ö¶¨µÄ¡£ÈÝÆ÷¶Ô²¼¾Ö¹ÜÀíÆ÷µÄÌض¨ÊµÀý±£³ÖÒ»¸öÒýÓ㬵±ÈÝÆ÷ÐèÒª¶¨Î»Ò»¸ö×é¼þʱ£¬Ëü½«µ÷Óò¼¾Ö¹ÜÀíÆ÷À´Íê³É£¬¾ö¶¨Ò»¸ö×é¼þµÄ´óСʱҲÊÇÈç´Ë¡£
ÔÚawtÖÐÓÐÎåÖÖ²¼¾Ö¹ÜÀíÆ÷
BorderLayOut
FlowLayOut
GridLayOut
GardLayOut
GridBagLayOut
1. & ......
´Ó5ÔÂ5ºÅ½øÈë¾ÍÒµ°àµ½ÏÖÔÚËÄÌìµÄʱ¼äÁË£¬ÉÏÁËÕ⼸Ìì¿Î·¢ÏÖ¾ÍÒµ°àµÄÇ¿¶ÈÕæµÄºÜ´ó£¬²»ÏñÒÔÇ°»ù´¡°àµÄʱºòÄÇô»¹±È½ÏÇáËÉ£¬ÒѾ½¥½¥¸Ð¾õµ½Á˳ÔÁ¦£¬ÒòΪÏÖÔÚÉÏ¿ÎÐèÒª½²½âµÄ֪ʶµãÌ«¶à£¬ÓÐʱºòÏÂÎçÀÏʦ½²µ½6µã¶àÖÓ²ÅÏ¿Σ¬¿ÎÉϵÄÁ·Ï°Ê±¼äÔ½À´Ô½ÉÙÁË£¬Ö»ÄÜ×Ô¼ºÀûÓÿκóµÄʱ¼ä¶àÁ·Ï°Êµ¼ù£¬Ðí¶à¶«Î÷»¹¶¼ÊǵÚÒ»´Î ......