Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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±ÊÊÔÌ⾫»ª°æ1.0


JAVA±ÊÊÔÌ⾫»ª°æ1.0
public class Test2
{
    public static void main(String[] args)
    {
        Float a = new Float(3.4);
      &n ......

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

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

JAVA¶¨Ê±Æ÷ Timer+TimerTask

     ±¾ÎÄÊ×ÏÈÉè¼ÆÒ»¸öµ¥´Î¶¨Ê±Æ÷Timer+TimerTask£¬È»ºóÔٴλù´¡ÉÏÉè¼ÆÒ»¸öÑ­»·¶¨Ê±Æ÷¡£
     ÎÒ½«°Ñ java.util.Timer ºÍ java.util.TimerTask ͳ³ÆΪ Java ¼ÆʱÆ÷¿ò¼Ü£¬ËüÃÇʹ³ÌÐòÔ±¿ÉÒÔºÜÈÝÒ׵ؼƻ®¼òµ¥µÄÈÎÎñ£¨×¢ÒâÕâЩÀàÒ²¿ÉÓÃÓÚ J2ME ÖУ©¡£²»¹ý£¬Java ¼ÆʱÆ÷¿ò¼ÜûÓÐ× ......

javaÖÐ== ÓëequalsµÄÇø±ð

public class test1
{
 public static void main(String[] args){
  //== ÓëequalsµÄÇø±ð
  //1.nullµÄ±È½Ï£ºÖ»ÄÜÓÃ==
  System.out.println("1.nullµÄ±È½Ï£ºÖ»ÄÜÓÃ==");
  Object o1=null,o2=null;
  System.out.println(null==null&&o1==null& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ