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

javaÖÐ120¸ö¾­µäÎÊÌâ2

31¡¢EJB°üÀ¨£¨SessionBean,EntityBean£©Ëµ³öËûÃǵÄÉúÃüÖÜÆÚ£¬¼°ÈçºÎ¹ÜÀíÊÂÎñµÄ£¿
    SessionBean£ºStateless Session Bean µÄÉúÃüÖÜÆÚÊÇÓÉÈÝÆ÷¾ö¶¨µÄ£¬µ±¿Í»§»ú·¢³öÇëÇóÒª½¨Á¢Ò»¸öBeanµÄʵÀýʱ£¬EJBÈÝÆ÷²»Ò»¶¨Òª´´½¨Ò»¸öеÄBeanµÄʵÀý¹©¿Í»§»úµ÷Ó㬶øÊÇËæ±ãÕÒÒ»¸öÏÖÓеÄʵÀýÌṩ¸ø¿Í»§»ú¡£µ±¿Í»§»úµÚÒ»´Îµ÷ÓÃÒ»¸öStateful Session Bean ʱ£¬ÈÝÆ÷±ØÐëÁ¢¼´ÔÚ·þÎñÆ÷Öд´½¨Ò»¸öеÄBeanʵÀý£¬²¢¹ØÁªµ½¿Í»§»úÉÏ£¬ÒÔºó´Ë¿Í»§»úµ÷ÓÃStateful Session Bean µÄ·½·¨Ê±ÈÝÆ÷»á°Ñµ÷Ó÷ÖÅɵ½Óë´Ë¿Í»§»úÏà¹ØÁªµÄBeanʵÀý¡£
    EntityBean£ºEntity BeansÄÜ´æ»îÏà¶Ô½Ï³¤µÄʱ¼ä£¬²¢ÇÒ״̬ÊdzÖÐøµÄ¡£Ö»ÒªÊý¾Ý¿âÖеÄÊý¾Ý´æÔÚ£¬Entity beans¾ÍÒ»Ö±´æ»î¡£¶ø²»ÊÇ°´ÕÕÓ¦ÓóÌÐò»òÕß·þÎñ½ø³ÌÀ´ËµµÄ¡£¼´Ê¹EJBÈÝÆ÷±ÀÀ£ÁË£¬Entity beansÒ²ÊÇ´æ»îµÄ¡£Entity BeansÉúÃüÖÜÆÚÄܹ»±»ÈÝÆ÷»òÕß Beans×Ô¼º¹ÜÀí¡£
    EJBͨ¹ýÒÔϼ¼Êõ¹ÜÀíʵÎñ£º¶ÔÏó¹ÜÀí×éÖ¯£¨OMG£©µÄ¶ÔÏóʵÎñ·þÎñ£¨OTS£©£¬Sun MicrosystemsµÄTransaction Service£¨JTS£©¡¢Java Transaction API£¨JTA£©£¬¿ª·¢×飨X/Open£©µÄXA½Ó¿Ú¡£
    32¡¢Ó¦Ó÷þÎñÆ÷ÓÐÄÇЩ£¿
    BEA WebLogic Server£¬IBM WebSphere Application Server£¬Oracle9i Application Server£¬jBoss£¬Tomcat
    33¡¢¸øÎÒÒ»¸öÄã×î³£¼ûµ½µÄruntime exception¡£
    ArithmeticException, ArrayStoreException, BufferOverflowException, BufferUnderflowException, CannotRedoException, CannotUndoException, ClassCastException, CMMException, ConcurrentModificationException, DOMException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalPathStateException, IllegalStateException, ImagingOpException, IndexOutOfBoundsException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, ProfileDataException, ProviderException, RasterFormatException, SecurityException, SystemException, UndeclaredThrowableException, UnmodifiableSetException, UnsupportedOperationException
    34¡¢½Ó¿ÚÊÇ·ñ¿É¼Ì³Ð½Ó¿Ú? ³éÏóÀàÊÇ·ñ¿ÉʵÏÖ(implements)½Ó¿Ú? ³éÏóÀàÊÇ·ñ¿É¼Ì³ÐʵÌåÀà(concrete class)?½Ó¿Ú¿ÉÒԼ̳нӿڡ£


Ïà¹ØÎĵµ£º

½âÎöJavaÀàºÍ¶ÔÏóµÄ³õʼ»¯¹ý³Ì

ÀàµÄ³õʼ»¯ºÍ¶ÔÏó³õʼ»¯ÊÇ JVM ¹ÜÀíµÄÀàÐÍÉúÃüÖÜÆÚÖзdz£ÖØÒªµÄÁ½¸ö»·½Ú£¬Google ÁËÒ»±éÍøÂ磬ÓйØÀà×°ÔØ»úÖƵÄÎÄÕµ¹ÊDz»ÉÙ£¬È»¶øÀà³õʼ»¯ºÍ¶ÔÏó³õʼ»¯µÄÎÄÕ²¢²»¶à£¬ÌرðÊÇ´Ó×Ö½ÚÂëºÍ JVM ²ã´ÎÀ´·ÖÎöµÄÎÄÕ¸üÊÇÏÊÓÐËù¼û¡£
±¾ÎÄÖ÷Òª¶ÔÀàºÍ¶ÔÏó³õʼ»¯È«¹ý³Ì½øÐзÖÎö£¬Í¨¹ýÒ»¸öʵ¼ÊÎÊÌâÒýÈ룬½«Ô´´úÂëת»»³É JVM ×Ö½ÚÂëºó£¬ ......

javaÖеÄSingleton (µ¥Á¢)Éè¼Æģʽ£¨»¹Ã»Ð´Í꣩

Java Singleton
ģʽ(µ¥Éíģʽ,µ¥Ì¬Ä£Ê½)ÊÇÒ»ÖÖ´´½¨ÐÍÉè¼Æģʽ¡£ÓÃÀ´±£Ö¤ÔÚÔËÐеÄÓ¦ÓóÌÐòÖУ¬Ò»¸öClassÖ»ÊÇʵÀý»¯Ò»´Î£¬Ò²¾ÍÊÇÖ»ÓÐÒ»¸öÏàÓ¦µÄ¶ÔÏó´æÔÚ¡£ÔÚ
web ³ÌÐòÖÐÎÒÃÇ»áÓÃÒ»¸öºËÐĵķÖÅ书ÄܵÄServlet³ÌÐò£¬ÔÚÕâÀïÎÒÃǾͿÉÒÔÔËÓÃÕâÖÖÉè¼ÆģʽÁË¡£ ......

Javaʱ¼äº¯Êý

String   posttime=new   java.text.SimpleDateFormat("yyyy-MM-dd   HH:mm:sss").format(   java.util.Calendar.getInstance().getTime()   );
1. Java¼ÆËãʱ¼äÒÀ¿¿1970Äê1ÔÂ1ÈÕ¿ªÊ¼µÄºÁÃëÊý.                 ......

µ÷ÓÃJava±àÒëÆ÷API±àÒëJavaÔ´´úÂë

Compiling with the Java Compiler API
µ÷ÓÃJava±àÒëÆ÷API±àÒëJava
´ÓµÚÒ»Ì쿪ʼ,±ê×¼Javaƽ̨¾ÍȱÉÙÄܹ»±»µ÷ÓÃ,È¥²úÉúJava×Ö½ÚÂëµÄ±àÒëÆ÷½Ó¿Ú. ʹÓÃSunʵÏÖµÄƽ̨,Ò»¸öÓû§¿ÉÒÔͨ¹ý·Ç±ê×¼µÄ com.sun.tools.javac  °üÖеÄMain class È¥±àÒëÄãµÄ´úÂë (Äã¿ÉÒÔÔÚlib×ÓĿ¼Ï嵀 tools.jar ÎļþÀïÕÒµ½Ëü). È»¶øÕâ¸ö° ......

¡¾×ª¡¿ÔÚJavaÖÐʹÓÃNIO½øÐÐÍøÂç±à³Ì

ÔÚJDKÖУ¬ÓÐÒ»¸ö·Ç³£ÓÐÒâ˼µÄ¿â£ºNIO£¨New I/O£©¡£Õâ¸ö¿âÖÐÓÐ3¸öÖØÒªµÄÀ࣬·Ö±ðÊÇjava.nio.channelsÖÐSelectorºÍChannel£¬ÒÔ¼°java.nioÖеÄBuffer¡£
±¾ÆªÎÄÕÂÎÒÃÇÊ×ÏÈÁ˽âÒ»ÏÂΪʲôÐèÒªNIOÀ´½øÐÐÍøÂç±à³Ì£¬È»ºó¿´¿´Ò»²½Ò»²½À´½²½âÈçºÎÔÚÍøÂç±à³ÌÖÐʹÓÃNIO¡£
ΪʲôÐèÒªNIO
ʹÓÃJava±àд¹ýSocket³ÌÐòµÄͬѧһ¶¨¶¼ÖªµÀSoc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ