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

JAVA»ù´¡ÃæÊÔÌâ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)?
½Ó¿Ú¿ÉÒԼ̳нӿڡ£³éÏóÀà¿ÉÒÔʵÏÖ(implements)½Ó¿Ú£¬³éÏóÀàÊÇ·ñ¿É¼Ì³ÐʵÌåÀ࣬µ«Ç°ÌáÊÇʵÌåÀà±ØÐëÓÐÃ÷È·µÄ¹¹Ô캯Êý¡£
35¡¢List, Set, MapÊÇ·ñ¼Ì³Ð×ÔCollection½Ó¿Ú?
 


Ïà¹ØÎĵµ£º

ÓÃjavaÇó½âÒ»µÀȤζÌå:123456789²åÈë+£¬

 ×î½üÔÚCSDN£¬¿´µ½ÁËÒ»µÀȤζÌ⣺123456789Õâ¾Å¸ö°´Ë³ÐòÅÅÁеÄÊý£¬ÒªÇóÔÚËüÃÇÖ®¼ä²åÈëÈô¸É¸ö+£¬-£¬*£¬/ £¬Ê¹Æä½á¹ûÕýºÃµÈÓÚ
100È磺1*2*3*4+5+6+7*8+9=100¡£
¿´ÁËÌâÄ¿ºó£¬Ë¼¿¼Èç¹ûÓÃjavaÈçºÎʵÏÖ¡£ÒÔÏÂÊÇÎҵĽâÌâ˼·£º
˼Ïë±È½Ï¼òµ¥£¬ÏȽ«²åÈë+£¬-£¬*£¬/ºóµÄËùÓÐ×Ö·û´®¶¼Çî¾Ù³öÀ´£¬È»ºó¼ÆËãÄÄЩ×Ö·û´®µÈÓÚ100¡£
Õ ......

¶ÔÓÚJAVA°üÔÚwindows xpÏÂCMD.exeÔËÐÐ

 Õâ¸öÎÊÌâ½ñÌìÖÕÓÚ¿´Ò»¸ö¸çÃǶùµÄÎÄÕ¸㶨ÁË£¬ÔÚ´Ëлл£¡ËùÒÔתÔØÒ»ÏÂ
=============================================================

java-package°üµÄʹÓ÷½·¨
¡¡¡¡
µ±Ò»¸ö´óÐͳÌÐò½»ÓÉÊý¸ö²»Í¬µÄ³ÌÐòÈËÔ±¿ª·¢Ê±£¬Óõ½ÏàͬµÄÀàÃûÊǺÜÓпÉÄܵģ¬ÄÇôÈç¹û·¢ÉúÁËÕâÑùµÄʼþÎÒÃǸÃÔõô°ìÄÇ£¿£¬ÔÚÎÒÃÇjava³ÌÐò¿ª ......

javaºÍphpÊý×Ö´¦ÀíÉÏ

javaʹÓÃMathÀ࣬phpʹÓÃϵͳº¯Êý
ceil¹¦ÄÜ ´óÓÚµÈÓÚijÊý(³£ÓÃÓÚ·ÖÒ³Ò³Êý¼ÆË㣩
phpÖУºceil(a/b)
javaÖУº(int)Math.ceil((double)a/b))    Math.ceilÔÚjavaÖÐÐèÒª´«ÈëdoubleÐÍ£¬¶ø·µ»ØÒ²ÊÇdoubleÐÍ¡£×¢ÒâÕâÀïÓÃ(double)a/b²Å¿ÉÒÔ¡£
a/b,(dobule)(a/b)¶¼²»ÐС£ÒòΪËûÃÇ»áÏÈ×Ô¶¯ÉáÆúСÊýÈ¡µÃÕûÊý
flooe ......

JAVAÅäÖÃJNDIÊý¾ÝÔ´

 ±¾°¸ÀýÊÇʹÓÃSQLSERVER2005×÷ΪÊý¾ÝÔ´£¬Ê¹ÓÃTOMCAT6.0
µÚÒ»²½£¬°ÑÒÔÏ´úÂ뿽±´µ½tomcatµÄ°²×°Ä¿Â¼confÎļþ¼Ðcontext.xmlÎļþÏ¡£
Êý¾Ý¿âÁ¬½ÓÇëÐÞ¸Ä
<Resource name="jdbc/demo"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.j ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ