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

javaÖеĶѡ¢Õ»¡¢³£Á¿³Ø

JavaÄÚ´æ·ÖÅä:
1. ¼Ä´æÆ÷£ºÎÒÃÇÔÚ³ÌÐòÖÐÎÞ·¨¿ØÖÆ
2. Õ»£º´æ·Å»ù±¾ÀàÐ͵ÄÊý¾ÝºÍ¶ÔÏóµÄÒýÓ㬵«¶ÔÏó±¾Éí²»´æ·ÅÔÚÕ»ÖУ¬¶øÊÇ´æ·ÅÔÚ¶ÑÖÐ
3.
¶Ñ£º´æ·ÅÓÃnew²úÉúµÄÊý¾Ý
4. ¾²Ì¬Óò£º´æ·ÅÔÚ¶ÔÏóÖÐÓÃstatic¶¨ÒåµÄ¾²Ì¬³ÉÔ±
5. ³£Á¿³Ø£º´æ·Å³£Á¿
6. ·ÇRAM(Ëæ»ú´æÈ¡´æ´¢Æ÷)´æ´¢£ºÓ²Å̵ÈÓÀ¾Ã´æ´¢¿Õ¼ä
----------------------------------------------------------------------------------------------------------------------
a.ÔÚº¯ÊýÖж¨ÒåµÄһЩ»ù±¾ÀàÐ͵ıäÁ¿Êý¾ÝºÍ¶ÔÏóµÄÒýÓñäÁ¿¶¼ÔÚº¯ÊýµÄÕ»ÄÚ´æÖзÖÅä¡£  
µ±ÔÚÒ»¶Î´úÂë¿é¶¨ÒåÒ»¸ö±äÁ¿Ê±£¬Java¾ÍÔÚÕ»ÖÐ
ΪÕâ¸ö±äÁ¿·ÖÅäÄÚ´æ¿Õ¼ä£¬µ±¸Ã±äÁ¿Í˳ö¸Ã×÷ÓÃÓòºó£¬Java»á×Ô¶¯ÊͷŵôΪ¸Ã±äÁ¿Ëù·ÖÅäµÄÄÚ´æ¿Õ¼ä£¬¸ÃÄÚ´æ¿Õ¼ä¿ÉÒÔÁ¢¼´±»Áí×÷ËûÓᣠ 
b.¶ÑÄÚ
´æÓÃÀ´´æ·ÅÓÉnew´´½¨µÄ¶ÔÏóºÍÊý×é¡£ ÔÚ¶ÑÖзÖÅäµÄÄڴ棬ÓÉJavaÐéÄâ»úµÄ×Ô¶¯À¬»ø»ØÊÕÆ÷À´¹ÜÀí¡£  
ÔÚ¶ÑÖвúÉúÁËÒ»¸öÊý×é»ò¶ÔÏóºó£¬»¹¿ÉÒÔ
ÔÚÕ»Öж¨ÒåÒ»¸öÌØÊâµÄ±äÁ¿£¬ÈÃÕ»ÖÐÕâ¸ö±äÁ¿µÄÈ¡ÖµµÈÓÚÊý×é»ò¶ÔÏóÔÚ¶ÑÄÚ´æÖеÄÊ×µØÖ·£¬Õ»ÖеÄÕâ¸ö±äÁ¿¾Í³ÉÁËÊý×é»ò¶ÔÏóµÄÒýÓñäÁ¿¡£  ÒýÓñäÁ¿¾ÍÏ൱ÓÚÊÇ
ΪÊý×é»ò¶ÔÏóÆðµÄÒ»¸öÃû³Æ£¬ÒÔºó¾Í¿ÉÒÔÔÚ³ÌÐòÖÐʹÓÃÕ»ÖеÄÒýÓñäÁ¿À´·ÃÎʶÑÖеÄÊý×é»ò¶ÔÏó¡£ÒýÓñäÁ¿¾ÍÏ൱ÓÚÊÇΪ
Êý×é»òÕ߶ÔÏóÆðµÄÒ»¸öÃû³Æ¡£ÒýÓñäÁ¿ÊÇÆÕͨµÄ±äÁ¿£¬¶¨ÒåʱÔÚÕ»ÖзÖÅ䣬ÒýÓñäÁ¿ÔÚ³ÌÐòÔËÐе½Æä×÷ÓÃÓòÖ®Íâºó±»ÊÍ·Å¡£¶øÊý×éºÍ¶ÔÏó±¾ÉíÔÚ¶ÑÖзÖÅ䣬¼´Ê¹³ÌÐò
ÔËÐе½Ê¹Óà new
²úÉúÊý×é»òÕ߶ÔÏóµÄÓï¾äËùÔڵĴúÂë¿éÖ®Í⣬Êý×éºÍ¶ÔÏó±¾ÉíÕ¼¾ÝµÄÄÚ´æ²»»á±»ÊÍ·Å£¬Êý×éºÍ¶ÔÏóÔÚûÓÐÒýÓñäÁ¿Ö¸ÏòËüµÄʱºò£¬²Å±äΪÀ¬»ø£¬²»ÄÜÔÚ±»Ê¹Ó㬵«ÈÔ
Ȼռ¾ÝÄÚ´æ¿Õ¼ä²»·Å£¬ÔÚËæºóµÄÒ»¸ö²»È·¶¨µÄʱ¼ä±»À¬»ø»ØÊÕÆ÷ÊÕ×ߣ¨Êͷŵô£©¡£ÕâÒ²ÊÇ Java
±È½ÏÕ¼ÄÚ´æµÄÔ­Òò¡£

ʵ¼ÊÉÏ£¬Õ»ÖеıäÁ¿Ö¸Ïò¶ÑÄÚ´æÖеıäÁ¿£¬Õâ¾ÍÊÇ Java
ÖеÄÖ¸Õ룡 
c.³£Á¿³Ø
(constant
pool)Ö¸µÄÊÇÔÚ±àÒëÆÚ±»È·¶¨£¬²¢±»±£´æÔÚÒѱàÒëµÄ.classÎļþÖеÄһЩÊý¾Ý¡£³ýÁË°üº¬´úÂëÖÐËù¶¨ÒåµÄ¸÷ÖÖ»ù±¾ÀàÐÍ£¨Èçint¡¢longµÈµÈ£©ºÍ¶Ô
ÏóÐÍ£¨ÈçString¼°Êý×飩µÄ³£Á¿Öµ(final)»¹°üº¬Ò»Ð©ÒÔÎı¾ÐÎʽ³öÏֵķûºÅÒýÓ㬱ÈÈ磺 ÀàºÍ½Ó¿ÚµÄÈ«ÏÞ¶¨Ãû£» ×ֶεÄÃû³ÆºÍÃèÊö·û£»
·½·¨ºÍÃû³ÆºÍÃèÊö·û¡£
ÐéÄâ»ú±ØÐëΪÿ¸ö±»×°ÔصÄÀàÐÍά»¤Ò»¸ö³£Á¿³Ø¡£³£Á¿³Ø¾ÍÊǸÃÀàÐÍËùÓõ½³£Á¿µÄÒ»¸öÓÐÐò¼¯ºÍ£¬°üÀ¨Ö±½Ó³£Á¿£¨string,integerºÍ
floating
point


Ïà¹ØÎĵµ£º

JavaÖÐѹËõÓë½âѹ ÖÐÎÄÎļþÃûÂÒÂë½â¾ö°ì·¨

http://xxw8393.blog.163.com/blog/static/37256834200993051226320/
java¶Ôì¶ÎÄ×ֵıàÂëÊÇÒÔ unicodeΪ»ù´¡£¬Òò´Ë£¬ÈôÊÇÒÔZipInputStream¼°ZipOutputStreamÀ´´¦ÀíѹËõ¼°½âѹËõµÄ¹¤×÷£¬Åöµ½ÖÐÎĵµÃû»ò·¾¶£¬Äǵ±È»ÊÇÒÔunicodeÀ´´¦ÀíÂÞ£¡µ«ÊÇ£¬ÏÖÔÚÊÐÃæÉϵÄѹËõ¼°½âѹËõÈíÌ壬ÀýÈçwinzip£¬È´ÊDz»Ö§Ô®unicodeµÄ£¬Ò»Åöµ½µµÃûÒ ......

javaÖÐÊý×é´«µÝµÄËù˼ËùÏë

×ðÖØÔ­´´£¬±¾Ìùת×Ô:http://longsy.javaeye.com/blog/382880
µ±Êý×é×÷Ϊ·½·¨´«µÝ²ÎÊýʱ£¬¼ÙÈçÐè´¦Àí´ËÊý×飬ÔòÒ»°ãÓÐÁ½ÖÖ×ö·¨£¨ÒÔһάÊý×éΪÀý£©:
//µÚÒ»ÖÖ
public static int[] processArray1(int[] array) {
int[] tempArr = new int[array.length];
for(int i=0; i<array.length; i++) {
......

javaÏÂClass.forNameµÄ×÷ÓÃÊÇʲô£¬ÎªÊ²Ã´ÒªÊ¹ÓÃËü.

Class.forName(xxx.xx.xx) ·µ»ØµÄÊÇÒ»¸öÀà Ê×ÏÈÄãÒªÃ÷°×ÔÚjavaÀïÃæÈκÎclass¶¼Òª×°ÔØÔÚÐéÄâ»úÉϲÅÄÜÔËÐС£Õâ¾ä»°¾ÍÊÇ×°ÔØÀàÓõÄ(ºÍnew ²»Ò»Ñù£¬Òª·ÖÇå³þ)¡£
ÖÁÓÚʲôʱºòÓã¬Äã¿ÉÒÔ¿¼ÂÇÒ»ÏÂÕâ¸öÎÊÌ⣬¸øÄãÒ»¸ö×Ö·û´®±äÁ¿£¬Ëü´ú±íÒ»¸öÀàµÄ°üÃûºÍÀàÃû£¬ÄãÔõôʵÀý»¯Ëü£¿Ö»ÓÐÄãÌáµ½µÄÕâ¸ö·½·¨ÁË£¬²»¹ýÒªÔÙ¼ÓÒ»µã¡£
A a = ( ......

JavaÈí¼þ¼Ü¹¹Ê¦ËùÒªÐèµÄ¶«Î÷

×÷ΪJava³ÌÐòÔ±À´Ëµ£¬×îÍ´¿àµÄÊÂÇéĪ¹ýÓÚ¿ÉÒÔÑ¡ÔñµÄ·¶Î§Ì«¹ã£¬¿ÉÒÔ¶ÁµÄÊéÌ«¶à£¬ÍùÍùÈÝÒ×ÎÞËùÊÊ´Ó¡£ÎÒÏë¾ÍÎÒ×Ô¼º¶Á¹ýµÄ¼¼ÊõÊé¼®ÖÐÌôÑ¡³öÀ´Ò»Ð©£¬°´ÕÕѧϰµÄÏȺó˳Ðò£¬ÍƼö¸ø´ó¼Ò£¬ÌرðÊÇÄÇЩÏë²»¶ÏÌá¸ß×Ô¼º¼¼ÊõˮƽµÄJava³ÌÐòÔ±ÃÇ¡£
Ò»¡¢Java±à³ÌÈëÃÅÀà
¶ÔÓÚûÓÐJava±à³Ì¾­ÑéµÄ³ÌÐòÔ±ÒªÈëÃÅ£¬Ëæ±ã¶ÁʲôÈëÃÅÊé¼®¶¼Ò»Ñù£¬Õâ ......

java¶ÁÈ¡mysqlÊý¾Ý¿âlatin1±ÜÃâÂÒÂë·½·¨

дÈëʱ£¬ÏÈ×öencode£º
public static String encode(String src) {
String result = null;
try {
result = new String(src.getBytes("gbk"), "ISO-8859-1");
} catch (UnsupportedEncodingException uee) {
System.err.println(uee);
}
return result;
}
¶Á³öʱ£¬ÔÙ×ödecode£º
public static String deco ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ