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

´«ÖDz¥¿ÍµÄJAVA SE»ù´¡ÊÓƵ 1 5 ×Ôѧ±Ê¼Ç

×òÌìÍíÉÏ¿ªÊ¼Ñ§Ï°´«ÖDz¥¿ÍµÄJAVA SE»ù´¡ÊÓƵ£¬µ½½ñÌìÍíÉÏÒѾ­°Ñ»ù´¡ÊÓƵ1-5¿´ÍêÁË£¬ÒòΪ֮ǰ¶Î¶ÎÐøÐøµÄ×Ôѧ¹ýCºÍJAVA£¬ËùÒÔÇ°ÃæÕ⼸½²¶¼¿´µÃͦ¿ìµÄ£¬µÚ5½²½²¶àỊ̈߳¬¾ÍÓÐЩ¸´ÔÓÁË¡£
2009-12-20  00:08:37
OS»·¾³±äÁ¿£ºOS¶¨ÒåµÄ±äÁ¿£¬¿É±»Ó¦ÓóÌÐòʹÓá£
set£º²é¿´
set path=%path%;....\jdk\bin;          //   =Á½±ß²»ÄÜÓпոñ
ÔÚÃüÁîÐд°¿ÚÏÂÉèÖÃʱ£¬²»Ó°ÏìÆäËû³ÌÐò£¬Ö»¶Ôµ±Ç°ÃüÁîÐд°¿ÚÓÐЧ¡£
path£ºjavaÃüÁî·¾¶
classpath£ºJVM²éÕÒÀàµÄ·¾¶¡£Ò»°ãÒª¼ÓÉÏ.;±íʾµ±Ç°Â·¾¶¡£classpathÖв»ÄÜÓпոñ£¬Ò²²»ÄÜÓÐÖÐÎÄ×Ö·û¡£
java -verbose£º¿ÉÒԲ鿴JVMÆô¶¯¼ÓÔعý³Ì¡£
JVMÔËÐйý³Ì£º
    ´úÂë×°Èë(ClassLoader)---->´úÂëУÑé(×Ö½ÚÂëÑéÖ¤)---->Ö´ÐÐ(½âÊÍÆ÷)
·´±àÒ빤¾ß
    JDK×Ô´øµÄjavapÃüÁî¿ÉÒÔ·´±àÒ룬¿Éϧ·´±àÒëµÄ½á¹ûÖ»Óз½·¨ÉùÃ÷£¬ÎÞ·½·¨µÄ¾ßÌåÄÚÈÝ£¬ÓÃjavaµÄ·´É书ÄÜ×Ô¼ºÒ²¿ÉÒÔʵÏÖ¡£
    JAD¹¤¾ß(ºÜÇ¿´ó£¬ÈÃÎÒÕðº³ÁËÒ»°Ñ£¬²»ÖªµÀʵÏÖµÄÔ­ÀíÊÇʲô)£ºjad -s java Test.class¡£ ¾ÓÈ»¿ÉÒÔÍêÈ«·´±àÒ룬µÃµ½ÍêÕûµÄÔ´Âë¡£
    FrontEnd£ºJADµÄGUI°æ
java±êʾ·û£º×Öĸ¡¢Êý×Ö¡¢Ï»®Ïß¡¢$(ÓеãÐÂÆæ)×é³É£¬²»ÄÜÒÔÊý×Ö¿ªÍ·£¬²»ÄÜÊǹؼü×Ö¡£
ËùÒÔbyte¡¢short¡¢charÔËËãʱ£¬¶¼ÏÈת»»ÎªintÀàÐÍ¡£
    System.out.println('a'+1);                 // Êä³ö98£¬ÒòΪ'a'ÏÈתΪint
    System.out.println(""+'a'+1);           //  Êä³öa1
java²»ÔÊÐíǶÌ׶¨Òå±äÁ¿(ºÍC/C++²»Í¬)¡£
<<×óÒÆ£¬ >>ÓÒÒÆ£¬ >>>ÎÞ·ûºÅÓÒÒÆ¡£   (javaûÓÐÎÞ·ûºÅÊý)¡£
ÒÆλÔËËãÊÊÓÃÓÚbyte, short, char, int, long£¬µÍÓÚintµÄ£¬¶¼ÏÈ×Ô¶¯×ª»»Îªint¡£
¶ÔintÒÆλa>>b£¬ÏȽ«b¶Ô32ȥģ£¬a>>33ºÍa>>1Ч¹ûÒ»Ñù¡£
¶ÔlongÒÆλa>>b£¬ÏȽ«b¶Ô64ȥģ£¬a>>65ºÍa>>1Ч¹ûÒ»Ñù¡£
switch()£ºÖ»½ÓÊÜbyte, short, char, int, enumÐÍ¡£
Êý×飺javaÊý×鶼ÓиölengthÊôÐÔ¡£
Êý×鿽±´£ºJAVA SE 1.6֮ǰʹÓÃSystem.arraycopy()£¬1.6ºó¿ÉÒÔʹÓÃjava.util.Arrays.copyOf()£¬¿´ArraysµÄÔ´Â룬¿ÉÖªArrays


Ïà¹ØÎĵµ£º

JavaÐÂÊÖÁôÒ⣺Java±à³ÌÈýÊ®Ìõ¹æÔò

JavaÐÂÊÖÁôÒ⣺Java±à³ÌÈýÊ®Ìõ¹æÔò
 
 ¡¡¡¡(1) ÀàÃûÊ××ÖĸӦ¸Ã´óд¡£×ֶΡ¢·½·¨ÒÔ¼°¶ÔÏ󣨾ä±ú£©µÄÊ××ÖĸӦСд¡£¶ÔÓÚËùÓбêʶ·û£¬ÆäÖаüº¬µÄËùÓе¥´Ê¶¼Ó¦½ô¿¿ÔÚÒ»Æ𣬶øÇÒ´óдÖм䵥´ÊµÄÊ××Öĸ¡£ÀýÈ磺
ThisIsAClassName
thisIsMethodOrFieldName
 
¡¡¡¡ÈôÔÚ¶¨ÒåÖгöÏÖÁ˳£Êý³õʼ»¯×Ö·û£¬Ôò´óдstati ......

JavaÖÐJAVA_HOMEÓëCLASSPATHµÄ½âÎö


JavaÖÐJAVA_HOMEÓëCLASSPATHµÄ½âÎö 


JavaÖÐJAVA_HOMEÓëCLASSPATHµÄ½âÎö
   
ºÜ¶àÈËÔÚ³õѧJavaµÄʱºò¾­³£»á±»ÊéÖнéÉܵÄÒ»¶Ñ»·¾³±äÁ¿µÄÉèÖøãµÃÍ·»èÄÔÕÍ£¬ºÜ¶àÊéÖж¼»áÔÚ³õ×°JDKµÄʱºòÈÃËû´ó¼ÒÉèÖÃJAVA_HOME»·¾³±ä
Á¿£¬ÔÚ¿ª·¢³ÌÐò ......

Javaµ÷ÓÃÍⲿ³ÌÐò

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
public class CmdTest {
    private static final long serialVersionUID = -2650474785662737262L;
    public static void main(String[] args) throws Exception {
  &n ......

JAVAÖÐÎÄÏÔʾÂÒÂëÎÊÌâ

ÔÚ»ùÓÚJAVAµÄ±à³ÌÖУ¬¾­³£»áÅöµ½ºº×ÖÏÔʾÂÒÂëµÄÎÊÌ⣬¾­Ò»·¬²éѯÏÖ×ܽáÈçÏ¡£
ÔÚJSPÖн¨ÒéÍøÒ³±àÂ뷽ʽÓÃGBK,ÕâÑù»á·½±ãһЩ¡£
Õâ¸öÎÊÌâÊÇÒòΪJAVA±àÂ뷽ʽת»»³öÏÖÁËÎÊÌ⣬JavaÖÐĬÈϵıàÂ뷽ʽÊÇUNICODE£¬¶øÖйúÈËͨ³£Ê¹ÓõÄÎļþºÍDB¶¼ÊÇ»ùÓÚGB2312»òÕßBIG5µÈ±àÂ룬¹Ê»á³öÏÖ´ËÎÊÌâ¡£ÎÒÖªµÀÒ»¶¨ÓкܶàÅóÓÑÒ²»áÅöµ½Õâ¸öÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ