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

Lesson1 Foundations of java and oo programming

Today , i take the first lesson of java ,let me sum up the details:
firstly,about jdk and jre.jdk stands for java development kit,while jre represent java Runtime Environment. jdk is the key of Java. And,jvm(java virtual machine) is the key of jre.
then ,about the platform independence of java.During the runing process of the java process,we should firstly compile the *.java source process,and generate the *. class file,and then bytecode,then run it by the jvm.This process make java be platform independence.
finally,the first java program----hello world
public class Hello{
 public static void main(String args[]){
  String str = "hello world!";
  System.out.println("\"hello world!\"\t"  +  "+\t"  + str);
 }
};
then i look up sth about the bytecode,the information is below:
ÕâÒ»Á½Ä꣬ÔÚJVMÉÏʹÓÃÆäËûÌæ´úÓïÑÔÔ½À´Ô½ÈÈÃÅÁË¡£ÏÖÔÚÖÁÉÙÓÐÈýÃÅÓïÑÔÓÐÐÒÔÚJava Community ProcessÖеõ½Á˹ٷ½ÈÏ¿É£ºJRuby¡¢GroovyºÍBean-Shell¡£ÁíÍ⣬´úºÅΪҰÂí(Mustang)µÄJava 6·¢²¼ÁË°üº¬ÁËÒ»¸öרΪ·â×°²»Í¬½Å±¾ÒýÇæµÄAPI²ã£¬¾ÍÏñJDBC·ÃÎÊÊý¾Ý¿âµÄģʽһÑù¡£ÔÙ¼ÓÉÏJava°æ±¾5Ò²ÔÚÓïÑÔ±¾ÉíÉÏ×öÁ˺ܴóµÄµ÷Õû¡£×ÜÖ®£¬¾ÍÏñÎÒ֮ǰ·­ÒëµÄһƪBLOGÒ»Ñù£¬Javaƽ̨µÄ±à³ÌÓïÑÔµÄÇ°¾°ÒѾ­·¢ÉúÁ˾޴óµÄ¸Ä±ä¡£ËäÈ»Èç´Ë£¬Ö»ÓÐÒ»Ñù¶«Î÷ûÓб䣬ËüÊÇËùÓÐÕâЩÓïÑԵĻù´¡£¬ÎÞÂÛÕâЩÓïÑÔÓжàôÎüÒýÈ˵ÄÌØÐԺ͹¦ÄÜ£¬×îÖÕ¶¼»áÔÚJVMµÄ»ìºÏÓïÑÔÖÐÔËÐУ¬¼´JVM×Ö½ÚÂë¡£ÕâÓÖÌáÆðÁËÎÒÔÚJVM/Java×Ö½ÚÂë·½ÃæµÄÐËȤ¡£ËùÒÔÊéд±¾ÎÄ£¬ÔÚÆäÖн«½éÉÜJVM×Ö½ÚÂ뼯ºÏ£¬ÓÃһЩ´úÂëÀ´ÃèÊöËüµÄ¹¤×÷·½Ê½£¬Ò²½«½éÉÜһЩ¿ÉÒÔÖ±½Ó²Ù×Ý×Ö½ÚÂëµÄ¹¤¾ß¡£
 
Ê×ÏÈÎÒҪ˵Ã÷µÄÊÇ£¬Ö±½ÓÁ˽âJVM×Ö½ÚÂë¸Ð¾õÊÇÆæ¹ÖµÄÊÂÇ飬ÒòΪÎÒÃÇ×ܲ»¿ÉÄÜ×Ô¼ºÀ´Êéд×Ö½ÚÂë¡£µ«ÊÇ£¬ÎÒÃÇÈç¹ûÖªµÀ±àÒëÆ÷¸ÉÁËЩʲô¿ÉÄÜ»á¸üºÃÒ»µã¡£±ÈÈ磬Äã¿Ï¶¨ÏëÖªµÀ±àÒëºóµÄStringBufferºÍStringµÄÇø±ð¡¢±àÒëÆ÷µ½µ×ÓÐûÓиøÄã¼ÓÉÏĬÈϹ¹Ô캯Êý……µ±ÄãÁ˽âÁËJVM×Ö½ÚÂë——ÕâÊÇÎÒ¿´¼û¹ýµÄ×î¼òµ¥µÄ“¿É×°ÅäÓïÑÔ”——Äã¾ÍÄܹ»ÑéÖ¤ÄãµÄÕâЩ¼ÙÉèÊÇ·ñÕýÈ·¡£
 
 
·Ö½âJava
¿¼Âǵ½´ó¼Ò¶ÔJava¶¼ÒѾ­±È½ÏÊìϤÁË£¬ËùÒÔÎÒÃÇÕâÑù¿ªÊ¼¿ÉÄܱȽÏÈÝÒ×£ºÎÒÃÇ´Ó±àÒëºóµÄJa


Ïà¹ØÎĵµ£º

̸ÂÛ Java ÐÔÄÜÓÅ»¯


Java ʹµÃ¸´ÔÓÓ¦ÓõĿª·¢±äµÃÏà¶Ô¼òµ¥£¬ºÁÎÞÒÉÎÊ£¬ËüµÄÕâÖÖÒ×ÓÃÐÔ¶ÔJavaµÄ´ó·¶Î§Á÷Ðй¦²»¿Éû¡£È»¶ø£¬ÕâÖÖÒ×ÓÃÐÔʵ¼ÊÉÏÊÇÒ»°ÑË«Èн£¡£Ò»¸öÉè¼ÆÁ¼ºÃµÄ Java³ÌÐò£¬ÐÔÄܱíÏÖÍùÍù²»ÈçÒ»¸öͬÑùÉè¼ÆÁ¼ºÃµÄC++³ÌÐò¡£ÔÚJava³ÌÐòÖУ¬ÐÔÄÜÎÊÌâµÄ´ó²¿·ÖÔ­Òò²¢²»ÔÚÓÚJavaÓïÑÔ£¬¶øÊÇÔÚÓÚ³ÌÐò±¾Éí¡£Ñø³ÉºÃµÄ´úÂë±àдϰ¹ß·Ç³£ÖØÒª£¬±ÈÈçÕ ......

java»ù´¡ÊÔÌâ

Ò»£®Ñ¡ÔñÌ⣨ÿµÀÌâ3·Ö£¬¹²45·Ö£©
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
                             
£¨1£©ÏÂÁйØÓÚJavaÓïÑÔµÄÌص㣬ÃèÊö´íÎóµÄÊÇ£¨ &nb ......

JAVAÀ༯¿ò¼ÜÖ÷Òª½Ó¿Ú

13.1.2  À༯¿ò¼ÜÖ÷Òª½Ó¿Ú
ÔÚÕû¸öJavaÀ༯ÖÐ×ʹÓõÄÀ༯½Ó¿ÚÊÇ£ºCollection¡¢List¡¢Set¡¢Map¡¢Iterator¡¢ListIterator¡¢Enumeration¡¢SortedSet¡¢SortedMap¡¢Queue¡¢Map.Entry£¬ÕâЩ½Ó¿ÚµÄ¾ßÌåÌصãÈç±í13-1Ëùʾ¡£
±í13-1  À༯¿ò¼Ü½Ó¿ÚµÄ¾ßÌåÌصã
Ðò    ºÅ
½Ó    ¿Ú
Ãè&nb ......

Java notify() and notifyAll() test


Java´úÂë
final TC[] ts = new TC[20];   
        for (int i = 0; i < ts.length; i++) {   
             ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ