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

JavaỊ̈߳º¸ÅÄîÓëÔ­Àí

JavaỊ̈߳º¸ÅÄîÓëÔ­Àí
 
SCJP5ѧϰ±Ê¼Ç
 
Ò»¡¢²Ù×÷ϵͳÖÐÏ̺߳ͽø³ÌµÄ¸ÅÄî
ÏÖÔڵIJÙ×÷ϵͳÊǶàÈÎÎñ²Ù×÷ϵͳ¡£¶àÏß³ÌÊÇʵÏÖ¶àÈÎÎñµÄÒ»ÖÖ·½Ê½¡£
½ø³ÌÊÇÖ¸Ò»¸öÄÚ´æÖÐÔËÐеÄÓ¦ÓóÌÐò£¬Ã¿¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÒ»¿éÄÚ´æ¿Õ¼ä£¬Ò»¸ö½ø³ÌÖпÉÒÔÆô¶¯¶à¸öÏ̡߳£±ÈÈçÔÚWindowsϵͳÖУ¬Ò»¸öÔËÐеÄexe¾ÍÊÇÒ»¸ö½ø³Ì¡£
 
Ïß³ÌÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬Ò»¸ö½ø³ÌÖпÉÒÔÔËÐжà¸öÏ̡߳£±ÈÈçjava.exe½ø³ÌÖпÉÒÔÔËÐкܶàÏ̡߳£Ïß³Ì×ÜÊÇÊôÓÚij¸ö½ø³Ì£¬½ø³ÌÖеĶà¸öÏ̹߳²Ïí½ø³ÌµÄÄÚ´æ¡£
 
“ͬʱ”Ö´ÐÐÊÇÈ˵ĸоõ£¬ÔÚÏß³ÌÖ®¼äʵ¼ÊÉÏÂÖ»»Ö´ÐС£
 
¶þ¡¢JavaÖеÄÏß³Ì
ÔÚJavaÖУ¬“Ïָ߳̔Á½¼þ²»Í¬µÄÊÂÇ飺
1¡¢java.lang.ThreadÀàµÄÒ»¸öʵÀý£»
2¡¢Ï̵߳ÄÖ´ÐС£
 
ʹÓÃjava.lang.ThreadÀà»òÕßjava.lang.Runnable½Ó¿Ú±àд´úÂëÀ´¶¨Ò塢ʵÀý»¯ºÍÆô¶¯ÐÂÏ̡߳£
 
Ò»¸öThreadÀàʵÀýÖ»ÊÇÒ»¸ö¶ÔÏó£¬ÏñJavaÖеÄÈκÎÆäËû¶ÔÏóÒ»Ñù£¬¾ßÓбäÁ¿ºÍ·½·¨£¬ÉúËÀÓÚ¶ÑÉÏ¡£
 
JavaÖУ¬Ã¿¸öÏ̶߳¼ÓÐÒ»¸öµ÷ÓÃÕ»£¬¼´Ê¹²»ÔÚ³ÌÐòÖд´½¨ÈκÎеÄỊ̈߳¬Ïß³ÌÒ²ÔÚºǫ́ÔËÐÐ×Å¡£
 
Ò»¸öJavaÓ¦ÓÃ×ÜÊÇ´Ómain()·½·¨¿ªÊ¼ÔËÐУ¬mian()·½·¨ÔËÐÐÔÚÒ»¸öÏß³ÌÄÚ£¬Ëü±»³ÆΪÖ÷Ï̡߳£
 
Ò»µ©´´½¨Ò»¸öеÄỊ̈߳¬¾Í²úÉúÒ»¸öеĵ÷ÓÃÕ»¡£
 
Ïß³Ì×ÜÌå·ÖÁ½ÀࣺÓû§Ï̺߳ÍÊغòÏ̡߳£
µ±ËùÓÐÓû§Ïß³ÌÖ´ÐÐÍê±ÏµÄʱºò£¬JVM×Ô¶¯¹Ø±Õ¡£µ«ÊÇÊغòÏß³ÌÈ´²»¶ÀÁ¢ÓÚJVM£¬ÊغòÏß³ÌÒ»°ãÊÇÓɲÙ×÷ϵͳ»òÕßÓû§×Ô¼º´´½¨µÄ¡£


Ïà¹ØÎĵµ£º

java³ÌÐòÔ±ÃæÊԱر¸µÄ32¸öÒªµã

ºÜ¾­µäµÄ¶«Î÷,±»×ªµÄµ½´¦¶¼ÊÇ, ÏÈдԭÎÄ:
µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£
¡¡final ÓÃÓÚÉùÃ÷ÊôÐÔ£¬·½·¨ºÍÀ࣬·Ö±ð±íʾÊôÐÔ²»¿É±ä£¬·½·¨²»¿É¸²¸Ç£¬À಻¿É¼Ì³Ð¡£finallyÊÇÒì³£´¦ÀíÓï¾ä½á¹¹µÄÒ»²¿·Ö£¬±íʾ×ÜÊÇÖ´ÐС£finalizeÊÇ ObjectÀàµÄÒ»¸ö·½·¨£¬ÔÚÀ¬»øÊÕ¼¯Æ÷Ö´ÐеÄʱºò»áµ÷Óñ»»ØÊÕ¶ÔÏóµÄ´Ë·½·¨£¬¿ÉÒÔ¸²¸Ç ......

java servlet ÂÒÂë

javaдÎļþÂÒÂë
StringBuffer sb = new StringBuffer();
  sb.append("<table  border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"b5d6e6\"");
  sb.append("<tr>");
  sb.append("<td bgcolor=\"#FFFFFE\" height=\"42\" colspan=\""+ (jsd ......

µÚ01Õ CORE Java_»ù±¾¸ñʽ

1.Ì⣺javaÀúÊ·£¿
´ð£ºJava Ö®¸¸Golsling
1995 Äê5 ÔÂ23 ÈÕ Java µ®Éú  
1998 Äê12 Ô 1.2 °æ±¾Java2  J2SE J2EE J2ME  
2004 Äê12 Ô 1.5 °æ±¾(5.0) Java JavaSE JavaEE JavaME
2.Ì⣺JavaSE£¬JavaEE£¬JavaME£¿
´ð£ºJavaSE ---Java ±ê׼ƽ̨ 
JavaEE ---ÆóÒµ¼ ......

Java ÕýÔò±í´ïʽ ×Ö·û´®Æ¥Åä

import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class JavaBasic {
     public static void main(String[] args){
      StringBuffer sd = new StringBuffer();
      String hhhString="adlkll";
    &nbs ......

javaÖйؼü×ÖvolatileµÄ×÷ÓÃ

ÓÃÔÚ¶àỊ̈߳¬Í¬²½±äÁ¿¡£ Ïß³ÌΪÁËÌá¸ßЧÂÊ£¬½«Ä³³ÉÔ±±äÁ¿(ÈçA)¿½±´ÁËÒ»·Ý£¨ÈçB£©£¬Ïß³ÌÖжÔAµÄ·ÃÎÊÆäʵ·ÃÎʵÄÊÇB¡£Ö»ÔÚijЩ¶¯×÷ʱ²Å½øÐÐAºÍBµÄͬ²½¡£Òò´Ë´æÔÚAºÍB²»Ò»ÖµÄÇé¿ö¡£volatile¾ÍÊÇÓÃÀ´±ÜÃâÕâÖÖÇé¿öµÄ¡£volatile¸æËßjvm£¬ ËüËùÐÞÊεıäÁ¿²»±£Áô¿½±´£¬Ö±½Ó·ÃÎÊÖ÷ÄÚ´æÖеģ¨Ò²¾ÍÊÇÉÏÃæ˵µÄA)
===================== ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ